Struct ratchet_core::NegotiatedExtension
source · pub struct NegotiatedExtension<E>(/* private fields */);
Implementations§
Trait Implementations§
source§impl<E: Debug> Debug for NegotiatedExtension<E>
impl<E: Debug> Debug for NegotiatedExtension<E>
source§impl<E> Extension for NegotiatedExtension<E>where
E: Extension,
impl<E> Extension for NegotiatedExtension<E>where
E: Extension,
source§impl<E> ExtensionDecoder for NegotiatedExtension<E>where
E: ExtensionDecoder,
impl<E> ExtensionDecoder for NegotiatedExtension<E>where
E: ExtensionDecoder,
source§impl<E> ExtensionEncoder for NegotiatedExtension<E>where
E: ExtensionEncoder,
impl<E> ExtensionEncoder for NegotiatedExtension<E>where
E: ExtensionEncoder,
source§impl<E> From<E> for NegotiatedExtension<E>where
E: Extension,
impl<E> From<E> for NegotiatedExtension<E>where
E: Extension,
source§impl<E> ReunitableExtension for NegotiatedExtension<E>where
E: ReunitableExtension,
impl<E> ReunitableExtension for NegotiatedExtension<E>where
E: ReunitableExtension,
source§fn reunite(encoder: Self::SplitEncoder, decoder: Self::SplitDecoder) -> Self
fn reunite(encoder: Self::SplitEncoder, decoder: Self::SplitDecoder) -> Self
Reunite this encoder and decoder back into a single extension.
source§impl<E> SplittableExtension for NegotiatedExtension<E>where
E: SplittableExtension,
impl<E> SplittableExtension for NegotiatedExtension<E>where
E: SplittableExtension,
§type SplitEncoder = NegotiatedExtension<<E as SplittableExtension>::SplitEncoder>
type SplitEncoder = NegotiatedExtension<<E as SplittableExtension>::SplitEncoder>
The type of the encoder.
§type SplitDecoder = NegotiatedExtension<<E as SplittableExtension>::SplitDecoder>
type SplitDecoder = NegotiatedExtension<<E as SplittableExtension>::SplitDecoder>
The type of the decoder.
source§fn split(self) -> (Self::SplitEncoder, Self::SplitDecoder)
fn split(self) -> (Self::SplitEncoder, Self::SplitDecoder)
Split this extension into its encoder and decoder halves.
Auto Trait Implementations§
impl<E> Freeze for NegotiatedExtension<E>where
E: Freeze,
impl<E> RefUnwindSafe for NegotiatedExtension<E>where
E: RefUnwindSafe,
impl<E> Send for NegotiatedExtension<E>where
E: Send,
impl<E> Sync for NegotiatedExtension<E>where
E: Sync,
impl<E> Unpin for NegotiatedExtension<E>where
E: Unpin,
impl<E> UnwindSafe for NegotiatedExtension<E>where
E: 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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more