#[repr(u8)]pub enum PayloadCodec {
Cbor = 0,
Protobuf = 1,
FlatBuffers = 2,
}Expand description
Codec used to encode the sub-protocol payload inside a GbpFrame.
The pf (payload_format) field in the frame header carries this value.
Cbor (0) is the default and is backward-compatible with all existing
implementations; frames that omit the pf field are treated as CBOR.
Variants§
Cbor = 0
CBOR (RFC 7049) — default and backward-compatible.
Protobuf = 1
Protocol Buffers (proto3).
FlatBuffers = 2
FlatBuffers.
Implementations§
Trait Implementations§
Source§impl Clone for PayloadCodec
impl Clone for PayloadCodec
impl Copy for PayloadCodec
Source§impl Debug for PayloadCodec
impl Debug for PayloadCodec
Source§impl Default for PayloadCodec
impl Default for PayloadCodec
Source§impl Display for PayloadCodec
impl Display for PayloadCodec
impl Eq for PayloadCodec
Source§impl Hash for PayloadCodec
impl Hash for PayloadCodec
Source§impl PartialEq for PayloadCodec
impl PartialEq for PayloadCodec
impl StructuralPartialEq for PayloadCodec
Auto Trait Implementations§
impl Freeze for PayloadCodec
impl RefUnwindSafe for PayloadCodec
impl Send for PayloadCodec
impl Sync for PayloadCodec
impl Unpin for PayloadCodec
impl UnsafeUnpin for PayloadCodec
impl UnwindSafe for PayloadCodec
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