pub struct FastWsWriter<S: AsyncWrite + Unpin + Send> { /* private fields */ }Expand description
fastwebsockets write half adapter.
Wraps WebSocketWrite<WriteHalf<S>>. Each write_binary call writes
directly to the underlying stream via AsyncWrite::write_all /
write_vectored (no WS-level buffering).
Trait Implementations§
Source§impl<S: AsyncWrite + Unpin + Send> WsFrameWriter for FastWsWriter<S>
impl<S: AsyncWrite + Unpin + Send> WsFrameWriter for FastWsWriter<S>
Source§async fn write_binary(&mut self, payload: Bytes) -> Result<(), TransportError>
async fn write_binary(&mut self, payload: Bytes) -> Result<(), TransportError>
Write a binary WebSocket frame. May buffer internally. Read more
Source§async fn write_pong(&mut self, payload: Bytes) -> Result<(), TransportError>
async fn write_pong(&mut self, payload: Bytes) -> Result<(), TransportError>
Write a WebSocket PONG frame in response to a peer PING.
Auto Trait Implementations§
impl<S> Freeze for FastWsWriter<S>where
S: Freeze,
impl<S> RefUnwindSafe for FastWsWriter<S>where
S: RefUnwindSafe,
impl<S> Send for FastWsWriter<S>
impl<S> Sync for FastWsWriter<S>where
S: Sync,
impl<S> Unpin for FastWsWriter<S>
impl<S> UnsafeUnpin for FastWsWriter<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for FastWsWriter<S>where
S: UnwindSafe,
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