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