pub enum WireCodec {
Json,
BinaryV1,
}Expand description
Wire codec selected for encoding a message on its next send.
Carried in-process only (never serialized) and defaults to
WireCodec::Json, the universally-understood encoding. The transport
manager stamps WireCodec::BinaryV1 just before send when the recipient is
known to support the compact binary format; mesh transports honor the stamp
at drain time while the internet transport always emits JSON.
Variants§
Json
Legacy JSON encoding — the permanent interoperability floor.
BinaryV1
Compact binary wire codec, version 1 (see crate::wire).
Trait Implementations§
impl Copy for WireCodec
impl Eq for WireCodec
impl StructuralPartialEq for WireCodec
Auto Trait Implementations§
impl Freeze for WireCodec
impl RefUnwindSafe for WireCodec
impl Send for WireCodec
impl Sync for WireCodec
impl Unpin for WireCodec
impl UnsafeUnpin for WireCodec
impl UnwindSafe for WireCodec
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