pub struct WebsocketCodec { /* private fields */ }
Trait Implementations§
Source§impl Debug for WebsocketCodec
impl Debug for WebsocketCodec
Source§impl Decoder for WebsocketCodec
impl Decoder for WebsocketCodec
Source§type Error = WebsocketError
type Error = WebsocketError
The type of unrecoverable frame decoding errors. Read more
Source§fn decode(&mut self, buf: &mut BytesMut) -> WebsocketResult<Option<Self::Item>>
fn decode(&mut self, buf: &mut BytesMut) -> WebsocketResult<Option<Self::Item>>
Attempts to decode a frame from the provided buffer of bytes. Read more
Source§impl Default for WebsocketCodec
impl Default for WebsocketCodec
Source§fn default() -> WebsocketCodec
fn default() -> WebsocketCodec
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for WebsocketCodec
impl RefUnwindSafe for WebsocketCodec
impl Send for WebsocketCodec
impl Sync for WebsocketCodec
impl Unpin for WebsocketCodec
impl UnwindSafe for WebsocketCodec
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