pub type WsMessageReader<IO = TcpOrTlsStream> = WsMessageReader<IO>;

Aliased Type§

struct WsMessageReader<IO = TcpOrTlsStream> { /* private fields */ }

Implementations

source§

impl<T> WsMessageReader<T>where T: AsyncRead + AsyncWrite + Unpin,

source

pub fn kind(&self) -> WsMessageKind

Trait Implementations

source§

impl<T> AsyncRead for WsMessageReader<T>where T: AsyncRead + AsyncWrite + Unpin,

source§

fn poll_read( self: Pin<&mut WsMessageReader<T>>, cx: &mut Context<'_>, buf: &mut [u8] ) -> Poll<Result<usize, Error>>

Attempt to read from the AsyncRead into buf. Read more
§

fn poll_read_vectored( self: Pin<&mut Self>, cx: &mut Context<'_>, bufs: &mut [IoSliceMut<'_>] ) -> Poll<Result<usize, Error>>

Attempt to read from the AsyncRead into bufs using vectored IO operations. Read more
source§

impl<T> Drop for WsMessageReader<T>where T: AsyncRead + AsyncWrite + Unpin,

source§

fn drop(&mut self)

Executes the destructor for this type. Read more