pub enum PayloadLayout {
Empty,
Fixed,
VersionSelected,
VersionAndLengthSelected,
MinimumLengthPreserved,
LengthPrefixed,
BoundedPreserved,
BoundedOpaque,
DynamicWordPadded,
Opaque,
}Expand description
The rule used to choose and bound a message payload layout.
Variants§
Empty
No semantic payload bytes are carried.
Fixed
One fixed layout is used for all supported protocol versions.
VersionSelected
The negotiated protocol selects between fixed layouts.
VersionAndLengthSelected
The negotiated protocol and exact body length jointly select a layout.
MinimumLengthPreserved
A typed fixed prefix is decoded while a bounded extension is preserved.
LengthPrefixed
A bounded length/count field controls a variable tail.
BoundedPreserved
A bounded payload is retained exactly while consumers may inspect it.
BoundedOpaque
A bounded extension is retained byte-for-byte because its internal schema is not modeled.
DynamicWordPadded
NUL-terminated station strings are followed by zero bytes to a four-byte boundary.
Opaque
The crate deliberately does not interpret the payload.
Trait Implementations§
Source§impl Clone for PayloadLayout
impl Clone for PayloadLayout
Source§fn clone(&self) -> PayloadLayout
fn clone(&self) -> PayloadLayout
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 moreimpl Copy for PayloadLayout
Source§impl Debug for PayloadLayout
impl Debug for PayloadLayout
impl Eq for PayloadLayout
Source§impl Hash for PayloadLayout
impl Hash for PayloadLayout
Source§impl PartialEq for PayloadLayout
impl PartialEq for PayloadLayout
impl StructuralPartialEq for PayloadLayout
Auto Trait Implementations§
impl Freeze for PayloadLayout
impl RefUnwindSafe for PayloadLayout
impl Send for PayloadLayout
impl Sync for PayloadLayout
impl Unpin for PayloadLayout
impl UnsafeUnpin for PayloadLayout
impl UnwindSafe for PayloadLayout
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