Trait ratchet_ext::SplittableExtension [−][src]
pub trait SplittableExtension: Extension {
type SplitEncoder: ExtensionEncoder + Send + Sync + 'static;
type SplitDecoder: ExtensionDecoder + Send + Sync + 'static;
fn split(self) -> (Self::SplitEncoder, Self::SplitDecoder);
}
Expand description
A trait for permitting an extension to be split into its encoder and decoder halves. Allowing for a WebSocket to be split into its sender and receiver halves.
Associated Types
type SplitEncoder: ExtensionEncoder + Send + Sync + 'static
type SplitEncoder: ExtensionEncoder + Send + Sync + 'static
The type of the encoder.
type SplitDecoder: ExtensionDecoder + Send + Sync + 'static
type SplitDecoder: ExtensionDecoder + Send + Sync + 'static
The type of the decoder.
Required methods
fn split(self) -> (Self::SplitEncoder, Self::SplitDecoder)
fn split(self) -> (Self::SplitEncoder, Self::SplitDecoder)
Split this extension into its encoder and decoder halves.