pub struct StackProfile(pub u16);Expand description
Stack Profile field
See Zigbee specification Annex D for bit field layout.
Tuple Fields§
§0: u16Implementations§
Source§impl StackProfile
impl StackProfile
Sourcepub fn stack_profile(&self) -> u8
pub fn stack_profile(&self) -> u8
Stack profile value
Sourcepub fn set_stack_profile(self, value: u8) -> Self
pub fn set_stack_profile(self, value: u8) -> Self
Sets the stack profile value
Sourcepub fn protocol_version(&self) -> u8
pub fn protocol_version(&self) -> u8
Protocol version
Sourcepub fn set_protocol_version(self, value: u8) -> Self
pub fn set_protocol_version(self, value: u8) -> Self
Sets the protocol version
Sourcepub fn router_capacity(&self) -> bool
pub fn router_capacity(&self) -> bool
Route capacity flag
Sourcepub fn set_router_capacity(self, value: bool) -> Self
pub fn set_router_capacity(self, value: bool) -> Self
Sets the route capacity flag
Sourcepub fn device_depth(&self) -> u8
pub fn device_depth(&self) -> u8
Device depth
Sourcepub fn set_device_depth(self, value: u8) -> Self
pub fn set_device_depth(self, value: u8) -> Self
Sets the device depth
Sourcepub fn end_device_capacity(&self) -> bool
pub fn end_device_capacity(&self) -> bool
End device capacity flag
Sourcepub fn set_end_device_capacity(self, value: bool) -> Self
pub fn set_end_device_capacity(self, value: bool) -> Self
Sets the end device capacity flag
Trait Implementations§
Source§impl Clone for StackProfile
impl Clone for StackProfile
Source§fn clone(&self) -> StackProfile
fn clone(&self) -> StackProfile
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for StackProfile
Source§impl Debug for StackProfile
impl Debug for StackProfile
impl Eq for StackProfile
Source§impl PartialEq for StackProfile
impl PartialEq for StackProfile
impl StructuralPartialEq for StackProfile
Source§impl<C: Default> TryRead<'_, C> for StackProfile
impl<C: Default> TryRead<'_, C> for StackProfile
Auto Trait Implementations§
impl Freeze for StackProfile
impl RefUnwindSafe for StackProfile
impl Send for StackProfile
impl Sync for StackProfile
impl Unpin for StackProfile
impl UnsafeUnpin for StackProfile
impl UnwindSafe for StackProfile
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more