[][src]Trait websocket::stream::sync::AsTcpStream

pub trait AsTcpStream {
    fn as_tcp(&self) -> &TcpStream;
}

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

Required methods

Important traits for &'_ TcpStream
fn as_tcp(&self) -> &TcpStream

Get a borrow of the TcpStream

Loading content...

Implementations on Foreign Types

impl<T: ?Sized> AsTcpStream for Box<T> where
    T: AsTcpStream
[src]

Loading content...

Implementors

impl AsTcpStream for TcpStream[src]

impl AsTcpStream for TlsStream<TcpStream>[src]

Loading content...