pub enum PayloadShape {
Fixed(usize),
Table {
entry_length: usize,
},
Npdu {
prefix: usize,
},
}Expand description
How long the payload of a BVLL message may be: the octets after the 4-octet header, which depend on the function alone (Annex J.2, U.2).
BvlcFunction::payload_shape gives it for B/IP and
Bvlc6Function::payload_shape
for B/IPv6.
Variants§
Fixed(usize)
Exactly this many octets.
Table
A table of whole entries of this many octets each. An empty table is allowed. Only B/IP messages carry tables.
Npdu
This many octets of fixed fields, then an NPDU of any length. The codec does not look inside the NPDU; the network layer does.
Implementations§
Trait Implementations§
Source§impl Clone for PayloadShape
impl Clone for PayloadShape
impl Copy for PayloadShape
Source§impl Debug for PayloadShape
impl Debug for PayloadShape
impl Eq for PayloadShape
Source§impl PartialEq for PayloadShape
impl PartialEq for PayloadShape
impl StructuralPartialEq for PayloadShape
Auto Trait Implementations§
impl Freeze for PayloadShape
impl RefUnwindSafe for PayloadShape
impl Send for PayloadShape
impl Sync for PayloadShape
impl Unpin for PayloadShape
impl UnsafeUnpin for PayloadShape
impl UnwindSafe for PayloadShape
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