pub struct WsReader<C> {
receiver: WebSocketReceiver<Box<dyn ByteStream>>,
codec: C,
peer_endpoint: Option<Endpoint>,
local_endpoint: Option<Endpoint>,
}Expand description
Read half of a WebSocket connection.
Fields§
§receiver: WebSocketReceiver<Box<dyn ByteStream>>§codec: C§peer_endpoint: Option<Endpoint>§local_endpoint: Option<Endpoint>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<C> Freeze for WsReader<C>where
C: Freeze,
impl<C> RefUnwindSafe for WsReader<C>where
C: RefUnwindSafe,
impl<C> Send for WsReader<C>where
C: Send,
impl<C> Sync for WsReader<C>where
C: Sync,
impl<C> Unpin for WsReader<C>where
C: Unpin,
impl<C> UnsafeUnpin for WsReader<C>where
C: UnsafeUnpin,
impl<C> UnwindSafe for WsReader<C>where
C: 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