#[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
Source§fn clone(&self) -> PayloadCodec
fn clone(&self) -> PayloadCodec
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PayloadCodec
impl Debug for PayloadCodec
Source§impl Default for PayloadCodec
impl Default for PayloadCodec
Source§fn default() -> PayloadCodec
fn default() -> PayloadCodec
Returns the “default value” for a type. Read more
Source§impl Display for PayloadCodec
impl Display for PayloadCodec
Source§impl Hash for PayloadCodec
impl Hash for PayloadCodec
Source§impl PartialEq for PayloadCodec
impl PartialEq for PayloadCodec
Source§fn eq(&self, other: &PayloadCodec) -> bool
fn eq(&self, other: &PayloadCodec) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for PayloadCodec
impl Eq 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