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

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

Notable traits for TcpStream

impl Read for TcpStreamimpl<'_> Read for &'_ TcpStreamimpl<'_> Write for &'_ TcpStreamimpl Write for TcpStream
; }

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

Required methods

fn as_tcp(&self) -> &TcpStream

Notable traits for TcpStream

impl Read for TcpStreamimpl<'_> Read for &'_ TcpStreamimpl<'_> Write for &'_ TcpStreamimpl Write for TcpStream
[src]

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...