Struct ratchet_rs::NoExt
source · [−]pub struct NoExt;
Expand description
An extension stub that does nothing.
Trait Implementations
sourceimpl ExtensionDecoder for NoExt
impl ExtensionDecoder for NoExt
type Error = Infallible
type Error = Infallible
The error type produced by this extension if decoding fails.
sourcefn decode(
&mut self,
_payload: &mut BytesMut,
_header: &mut FrameHeader
) -> Result<(), <NoExt as ExtensionDecoder>::Error>
fn decode(
&mut self,
_payload: &mut BytesMut,
_header: &mut FrameHeader
) -> Result<(), <NoExt as ExtensionDecoder>::Error>
Invoked when a frame has been received. Read more
sourceimpl ExtensionEncoder for NoExt
impl ExtensionEncoder for NoExt
type Error = Infallible
type Error = Infallible
The error type produced by this extension if encoding fails.
sourcefn encode(
&mut self,
_payload: &mut BytesMut,
_header: &mut FrameHeader
) -> Result<(), <NoExt as ExtensionEncoder>::Error>
fn encode(
&mut self,
_payload: &mut BytesMut,
_header: &mut FrameHeader
) -> Result<(), <NoExt as ExtensionEncoder>::Error>
Invoked when a frame has been received. Read more
sourceimpl ReunitableExtension for NoExt
impl ReunitableExtension for NoExt
sourcefn reunite(
_encoder: <NoExt as SplittableExtension>::SplitEncoder,
_decoder: <NoExt as SplittableExtension>::SplitDecoder
) -> NoExt
fn reunite(
_encoder: <NoExt as SplittableExtension>::SplitEncoder,
_decoder: <NoExt as SplittableExtension>::SplitDecoder
) -> NoExt
Reunite this encoder and decoder back into a single extension.
sourceimpl SplittableExtension for NoExt
impl SplittableExtension for NoExt
type SplitEncoder = NoExtEncoder
type SplitEncoder = NoExtEncoder
The type of the encoder.
type SplitDecoder = NoExtDecoder
type SplitDecoder = NoExtDecoder
The type of the decoder.
sourcefn split(
self
) -> (<NoExt as SplittableExtension>::SplitEncoder, <NoExt as SplittableExtension>::SplitDecoder)
fn split(
self
) -> (<NoExt as SplittableExtension>::SplitEncoder, <NoExt as SplittableExtension>::SplitDecoder)
Split this extension into its encoder and decoder halves.
impl Copy for NoExt
Auto Trait Implementations
impl RefUnwindSafe for NoExt
impl Send for NoExt
impl Sync for NoExt
impl Unpin for NoExt
impl UnwindSafe for NoExt
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more