#[non_exhaustive]pub enum ClientCodec {
Uncompressed,
Zstd,
Brotli,
Gzip,
}Expand description
Codec for clients to the Titan WebSocket API version 1.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Uncompressed
V1 messages encoded via MessagePack with no compression.
Zstd
V1 messages encoded via MessagePack with zstd compression.
Brotli
V1 messages encoded via MessagePack with brotli compression.
Gzip
V1 messages encoded via MessagePack with gzip compression.
Trait Implementations§
Source§impl Codec for ClientCodec
impl Codec for ClientCodec
Source§type SendItem = ClientRequest
type SendItem = ClientRequest
The type of message that is sent to the other side.
Source§type SendError = EncodeError
type SendError = EncodeError
The type of error that is returned if encoding fails.
Source§type RecvItem = ServerMessage
type RecvItem = ServerMessage
The type of message that is expected to be received from the other side.
Source§type RecvError = DecodeError
type RecvError = DecodeError
The type of error that is returned if decoding fails.
Source§impl Debug for ClientCodec
impl Debug for ClientCodec
Source§impl Default for ClientCodec
impl Default for ClientCodec
Source§fn default() -> ClientCodec
fn default() -> ClientCodec
Returns the “default value” for a type. Read more
Source§impl FromStr for ClientCodec
impl FromStr for ClientCodec
Source§impl PartialEq for ClientCodec
impl PartialEq for ClientCodec
impl Eq for ClientCodec
impl StructuralPartialEq for ClientCodec
Auto Trait Implementations§
impl Freeze for ClientCodec
impl RefUnwindSafe for ClientCodec
impl Send for ClientCodec
impl Sync for ClientCodec
impl Unpin for ClientCodec
impl UnsafeUnpin for ClientCodec
impl UnwindSafe for ClientCodec
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