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.

Required Associated Types

The type of the encoder.

The type of the decoder.

Required Methods

Split this extension into its encoder and decoder halves.

Implementors