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

Aliased Type§

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

Implementations

source§

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

source

pub fn kind(&self) -> WsMessageKind

Trait Implementations

source§

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

source§

fn drop(&mut self)

Executes the destructor for this type. Read more
source§

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

source§

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

Attempt to write bytes from buf into the object. Read more
source§

fn poll_flush( self: Pin<&mut WsMessageWriter<T>>, cx: &mut Context<'_> ) -> Poll<Result<(), Error>>

Attempt to flush the object, ensuring that any buffered data reach their destination. Read more
source§

fn poll_close( self: Pin<&mut WsMessageWriter<T>>, cx: &mut Context<'_> ) -> Poll<Result<(), Error>>

Attempt to close the object. Read more
§

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

Attempt to write bytes from bufs into the object using vectored IO operations. Read more