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

pub trait AsTcpStream {
    pub 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

pub 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

Implementations on Foreign Types

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

Implementors

impl AsTcpStream for TcpStream[src][+]

impl AsTcpStream for TlsStream<TcpStream>[src][+]