pub enum LengthEncoding {
TypeLengthValue {
option_len_multiplier: NonZeroUsize,
},
ValueOnly,
}
Expand description
Whether the length field of an option encodes the length of the entire option (including kind and length fields) or only of the value field.
For the TypeLengthValue
variant, an option_len_multiplier
may also
be specified. Some formats (such as NDP) do not directly encode the
length in bytes of each option, but instead encode a number which must
be multiplied by option_len_multiplier
in order to get the length in
bytes.
Variants§
Trait Implementations§
Source§impl Clone for LengthEncoding
impl Clone for LengthEncoding
Source§fn clone(&self) -> LengthEncoding
fn clone(&self) -> LengthEncoding
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl PartialEq for LengthEncoding
impl PartialEq for LengthEncoding
impl Copy for LengthEncoding
impl Eq for LengthEncoding
impl StructuralPartialEq for LengthEncoding
Auto Trait Implementations§
impl Freeze for LengthEncoding
impl RefUnwindSafe for LengthEncoding
impl Send for LengthEncoding
impl Sync for LengthEncoding
impl Unpin for LengthEncoding
impl UnwindSafe for LengthEncoding
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)