pub struct OnMeshPrefix {
pub subnet: Option<Ipv6AddressWithPrefix>,
pub default_route_preference: Option<RoutePreference>,
pub stable: Option<bool>,
pub slaac_preferred: Option<bool>,
pub slaac_valid: Option<bool>,
/* private fields */
}
Expand description
LoWPAN On-Mesh Prefix.
Informed by the Thread 1.1.1 Specification, section 5.13.2.
Fields§
§subnet: Option<Ipv6AddressWithPrefix>
Subnet to advertise for devices to use on the network. Required.
default_route_preference: Option<RoutePreference>
If present, indicates that this device is offering a default route as well as indicating the what preference this default route should be given relative to other devices offering default routes. If not present, no default route is advertised.
Based on P_default
and P_preference
from Section 5.13.2 of the
Thread 1.1.1 Specification.
stable: Option<bool>
True if the route is expected to be available for at least Thread’s
MIN_STABLE_LIFETIME
; otherwise false
. If not present, assumed to
be false
.
The Thread specification defines MIN_STABLE_LIFETIME
as 168 hours.
Based on P_stable
from Section 5.13.2 of the
Thread 1.1.1 Specification.
slaac_preferred: Option<bool>
True if network devices are allowed to use previously configured
addresses using this prefix. If not present, assumed to be false
.
“SLAAC” referrs to StateLess Address Auto Configuration, described in RFC4862.
Based on P_slaac_preferred
from Section 5.13.2 of the
Thread 1.1.1 Specification.
slaac_valid: Option<bool>
True if network devices are allowed to autoconfigure addresses using
this prefix. If not present, assumed to be false
.
“SLAAC” referrs to StateLess Address Auto Configuration, described in RFC4862.
Based on P_slaac_valid
from Section 5.13.2 of the
Thread 1.1.1 Specification.
Trait Implementations§
Source§impl Clone for OnMeshPrefix
impl Clone for OnMeshPrefix
Source§fn clone(&self) -> OnMeshPrefix
fn clone(&self) -> OnMeshPrefix
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for OnMeshPrefix
impl Debug for OnMeshPrefix
Source§impl<D: ResourceDialect> Decode<OnMeshPrefix, D> for OnMeshPrefix
impl<D: ResourceDialect> Decode<OnMeshPrefix, D> for OnMeshPrefix
Source§impl Default for OnMeshPrefix
impl Default for OnMeshPrefix
Source§fn default() -> OnMeshPrefix
fn default() -> OnMeshPrefix
Source§impl<D: ResourceDialect> Encode<OnMeshPrefix, D> for &OnMeshPrefix
impl<D: ResourceDialect> Encode<OnMeshPrefix, D> for &OnMeshPrefix
Source§impl PartialEq for OnMeshPrefix
impl PartialEq for OnMeshPrefix
Source§impl TypeMarker for OnMeshPrefix
impl TypeMarker for OnMeshPrefix
Source§type Owned = OnMeshPrefix
type Owned = OnMeshPrefix
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
inline_align
.§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
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 more§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
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 OnMeshPrefix
impl ValueTypeMarker for OnMeshPrefix
Source§type Borrowed<'a> = &'a OnMeshPrefix
type Borrowed<'a> = &'a OnMeshPrefix
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read moreimpl Persistable for OnMeshPrefix
impl StructuralPartialEq for OnMeshPrefix
Auto Trait Implementations§
impl Freeze for OnMeshPrefix
impl RefUnwindSafe for OnMeshPrefix
impl Send for OnMeshPrefix
impl Sync for OnMeshPrefix
impl Unpin for OnMeshPrefix
impl UnwindSafe for OnMeshPrefix
Blanket Implementations§
§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
§type MarkerInResultUnion = T
type MarkerInResultUnion = T
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
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)
clone_to_uninit
)