How to bypass calling of methods of an implemented trait to a field of the struct

please consider the following example:

struct NewStream {
    stream: TcpStream,
    ...
}

impl Read for NewStream {
    ...
}

as you know TcpStream implements Read trait, is it possible to bypass (!!!) calling of all Read methods to stream field without explicitly defining those methods for NewStream and calling the corresponding methods of stream field inside that defined method?

1 Like

It's not possible yet, but delegation like this is a frequent request, e.g. 2 days ago:

2 Likes