[][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

Get a borrow of the TcpStream

Implementations on Foreign Types

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

Important traits for TcpStream

Implementors

impl AsTcpStream for TcpStream
[src]

Important traits for TcpStream

impl AsTcpStream for TlsStream<TcpStream>
[src]

Important traits for TcpStream