pub struct WsTransport { /* private fields */ }Expand description
I/O filter that exposes binary WebSocket messages as a byte stream.
Incoming binary messages and fragments are forwarded as bytes. Text messages are rejected, ping frames receive automatic pong replies, and close frames close the underlying I/O stream.
The codec’s message size limit, see Codec::max_message_size(), also
bounds a fragmented binary message. To stream data of unbounded size in a
single fragmented message, set it to usize::MAX.
Implementations§
Trait Implementations§
Source§impl Clone for WsTransport
impl Clone for WsTransport
Source§impl Debug for WsTransport
impl Debug for WsTransport
Source§impl FilterLayer for WsTransport
impl FilterLayer for WsTransport
Source§fn shutdown(&self, buf: &FilterBuf<'_>) -> Result<Poll<()>>
fn shutdown(&self, buf: &FilterBuf<'_>) -> Result<Poll<()>>
Performs graceful filter shutdown. Read more
Source§fn process_read_buf(&self, buf: &FilterBuf<'_>) -> Result<()>
fn process_read_buf(&self, buf: &FilterBuf<'_>) -> Result<()>
Processes incoming data from the transport-facing source buffer into
the application-facing destination buffer. Read more
Auto Trait Implementations§
impl !Freeze for WsTransport
impl !RefUnwindSafe for WsTransport
impl !Send for WsTransport
impl !Sync for WsTransport
impl !UnwindSafe for WsTransport
impl Unpin for WsTransport
impl UnsafeUnpin for WsTransport
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more