Type Alias async_web_server::WsMessageWriter
source · 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,
impl<T> WsMessageWriter<T>where T: AsyncRead + AsyncWrite + Unpin,
pub fn kind(&self) -> WsMessageKind
Trait Implementations
source§impl<T> Drop for WsMessageWriter<T>where
T: AsyncRead + AsyncWrite + Unpin,
impl<T> Drop for WsMessageWriter<T>where T: AsyncRead + AsyncWrite + Unpin,
source§impl<T> AsyncWrite for WsMessageWriter<T>where
T: AsyncRead + AsyncWrite + Unpin,
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>>
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 moresource§fn poll_flush(
self: Pin<&mut WsMessageWriter<T>>,
cx: &mut Context<'_>
) -> Poll<Result<(), Error>>
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