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.
Implementations§
Trait Implementations§
Source§impl Clone for WsTransport
impl Clone for WsTransport
Source§fn clone(&self) -> WsTransport
fn clone(&self) -> WsTransport
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§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 !Sync for WsTransport
impl Send for WsTransport
impl Unpin for WsTransport
impl UnsafeUnpin for WsTransport
impl UnwindSafe for WsTransport
Blanket Implementations§
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