websocket_base::stream::sync

Trait NetworkStream

Source
pub trait NetworkStream:
    Read
    + Write
    + AsTcpStream { }
Expand description

a Stream that can also be used as a borrow to a TcpStream this is useful when you want to set TcpStream options on a Stream like nonblocking.

Implementors§

Source§

impl<S> NetworkStream for S
where S: Read + Write + AsTcpStream,