#[repr(u8)]pub enum RoutingRole {
Unspecified = 0,
Unassigned = 1,
Sleepyenddevice = 2,
Enddevice = 3,
Reed = 4,
Router = 5,
Leader = 6,
}Variants§
Unspecified = 0
Unspecified routing role.
Unassigned = 1
The Node does not currently have a role as a result of the Thread interface not currently being configured or operational.
Sleepyenddevice = 2
The Node acts as a Sleepy End Device with RX-off-when-idle sleepy radio behavior.
Enddevice = 3
The Node acts as an End Device without RX-off-when-idle sleepy radio behavior.
Reed = 4
The Node acts as an Router Eligible End Device.
Router = 5
The Node acts as a Router Device.
Leader = 6
The Node acts as a Leader Device.
Implementations§
Trait Implementations§
Source§impl Clone for RoutingRole
impl Clone for RoutingRole
Source§fn clone(&self) -> RoutingRole
fn clone(&self) -> RoutingRole
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 RoutingRole
impl Debug for RoutingRole
Source§impl<'de> Deserialize<'de> for RoutingRole
impl<'de> Deserialize<'de> for RoutingRole
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<RoutingRole> for u8
impl From<RoutingRole> for u8
Source§fn from(val: RoutingRole) -> Self
fn from(val: RoutingRole) -> Self
Converts to this type from the input type.
Source§impl PartialEq for RoutingRole
impl PartialEq for RoutingRole
Source§impl Serialize for RoutingRole
impl Serialize for RoutingRole
impl Copy for RoutingRole
impl Eq for RoutingRole
impl StructuralPartialEq for RoutingRole
Auto Trait Implementations§
impl Freeze for RoutingRole
impl RefUnwindSafe for RoutingRole
impl Send for RoutingRole
impl Sync for RoutingRole
impl Unpin for RoutingRole
impl UnwindSafe for RoutingRole
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