Trait ratchet_rs::SplittableExtension [−][src]
pub trait SplittableExtension: Extension {
type SplitEncoder: 'static + ExtensionEncoder + Send + Sync;
type SplitDecoder: 'static + ExtensionDecoder + Send + Sync;
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: 'static + ExtensionEncoder + Send + Sync
type SplitEncoder: 'static + ExtensionEncoder + Send + Sync
The type of the encoder.
type SplitDecoder: 'static + ExtensionDecoder + Send + Sync
type SplitDecoder: 'static + ExtensionDecoder + Send + Sync
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.