websocket_base::stream::sync

Trait AsTcpStream

Source
pub trait AsTcpStream {
    // Required method
    fn as_tcp(&self) -> &TcpStream ;
}
Expand description

The ability access a borrow to an underlying TcpStream, so one can set options on the stream such as nonblocking.

Required Methods§

Source

fn as_tcp(&self) -> &TcpStream

Get a borrow of the TcpStream

Implementations on Foreign Types§

Source§

impl<T> AsTcpStream for Box<T>
where T: AsTcpStream + ?Sized,

Implementors§