pub struct LowpanContextInfo {
pub context_id: Option<u8>,
pub compress_flag: Option<bool>,
pub stable: Option<bool>,
pub prefix: Option<String>,
/* private fields */
}Expand description
Represents 6LoWPAN Context ID information associated with a prefix in Network Data.
Derived from otLowpanContextInfo(https://openthread.io/reference/struct/ot-lowpan-context-info)
Fields§
§context_id: Option<u8>The 6LoWPAN Context ID.
Required.
compress_flag: Option<bool>The compress flag.
Required.
stable: Option<bool>Whether the Context TLV is marked as Stable Network Data.
Required.
prefix: Option<String>The associated IPv6 prefix.
Required.
Trait Implementations§
Source§impl Clone for LowpanContextInfo
impl Clone for LowpanContextInfo
Source§fn clone(&self) -> LowpanContextInfo
fn clone(&self) -> LowpanContextInfo
Returns a duplicate 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 Debug for LowpanContextInfo
impl Debug for LowpanContextInfo
Source§impl<D> Decode<LowpanContextInfo, D> for LowpanContextInfowhere
D: ResourceDialect,
impl<D> Decode<LowpanContextInfo, D> for LowpanContextInfowhere
D: ResourceDialect,
Source§fn new_empty() -> LowpanContextInfo
fn new_empty() -> LowpanContextInfo
Creates a valid instance of
Self. The specific value does not matter,
since it will be overwritten by decode.Source§impl Default for LowpanContextInfo
impl Default for LowpanContextInfo
Source§fn default() -> LowpanContextInfo
fn default() -> LowpanContextInfo
Returns the “default value” for a type. Read more
Source§impl<D> Encode<LowpanContextInfo, D> for &LowpanContextInfowhere
D: ResourceDialect,
impl<D> Encode<LowpanContextInfo, D> for &LowpanContextInfowhere
D: ResourceDialect,
Source§impl PartialEq for LowpanContextInfo
impl PartialEq for LowpanContextInfo
Source§impl TypeMarker for LowpanContextInfo
impl TypeMarker for LowpanContextInfo
Source§type Owned = LowpanContextInfo
type Owned = LowpanContextInfo
The owned Rust type which this FIDL type decodes into.
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Returns the minimum required alignment of the inline portion of the
encoded object. It must be a (nonzero) power of two.
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
Returns the size of the inline portion of the encoded object, including
padding for alignment. Must be a multiple of
inline_align.Source§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned to a single memcpy. Read moreSource§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned to a single memcpy.Source§impl ValueTypeMarker for LowpanContextInfo
impl ValueTypeMarker for LowpanContextInfo
Source§type Borrowed<'a> = &'a LowpanContextInfo
type Borrowed<'a> = &'a LowpanContextInfo
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &Self::Owned. There are three cases: Read moreSource§fn borrow(
value: &<LowpanContextInfo as TypeMarker>::Owned,
) -> <LowpanContextInfo as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<LowpanContextInfo as TypeMarker>::Owned, ) -> <LowpanContextInfo as ValueTypeMarker>::Borrowed<'_>
Cheaply converts from
&Self::Owned to Self::Borrowed.impl Persistable for LowpanContextInfo
impl StructuralPartialEq for LowpanContextInfo
Auto Trait Implementations§
impl Freeze for LowpanContextInfo
impl RefUnwindSafe for LowpanContextInfo
impl Send for LowpanContextInfo
impl Sync for LowpanContextInfo
impl Unpin for LowpanContextInfo
impl UnwindSafe for LowpanContextInfo
Blanket Implementations§
Source§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
Source§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
The marker type to use when the body is at the top-level.
Source§type MarkerInResultUnion = T
type MarkerInResultUnion = T
The marker type to use when the body is nested in a result union.
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