pub type TcpBidiFramed<T> = BidiFramed<T, OwnedWriteHalf, OwnedReadHalf>;
Expand description
Special case for tokio TcpStream
based
BidiFramed
instances
Aliased Type§
struct TcpBidiFramed<T> { /* private fields */ }
Implementations§
Source§impl<T> TcpBidiFramed<T>where
T: Serialize + DeserializeOwned,
impl<T> TcpBidiFramed<T>where
T: Serialize + DeserializeOwned,
Sourcepub fn new_from_tcp(stream: TcpStream) -> TcpBidiFramed<T>
pub fn new_from_tcp(stream: TcpStream) -> TcpBidiFramed<T>
Special constructor for tokio TCP connections.
Tokio TcpStream
implements an efficient
method of splitting the stream into a read and a write half this
constructor takes advantage of.