pub struct CommandOptions(pub u8);Expand description
Route Request Command Options
See Section 3.4.3.1.1.
Tuple Fields§
§0: u8Implementations§
Source§impl CommandOptions
impl CommandOptions
Sourcepub fn many_to_one(&self) -> u8
pub fn many_to_one(&self) -> u8
Many-to-one flag
The many-to-one flag shall be set to 1 if the route request is being initiated by a concentrator device. Otherwise, it shall be set to 0.
Sourcepub fn set_many_to_one(self, value: u8) -> Self
pub fn set_many_to_one(self, value: u8) -> Self
Sets the Many-to-one flag
Sourcepub fn destination_ieee(&self) -> bool
pub fn destination_ieee(&self) -> bool
Destination IEEE Address flag
The destination IEEE address flag shall be set to 1 if the destination IEEE address field is present. Otherwise, it shall be set to 0.
Sourcepub fn set_destination_ieee(self, value: bool) -> Self
pub fn set_destination_ieee(self, value: bool) -> Self
Sets the Destination IEEE Address flag
Sourcepub fn set_multicast(self, value: bool) -> Self
pub fn set_multicast(self, value: bool) -> Self
Sets the Multicast flag
Trait Implementations§
Source§impl Clone for CommandOptions
impl Clone for CommandOptions
impl Copy for CommandOptions
Source§impl Debug for CommandOptions
impl Debug for CommandOptions
impl Eq for CommandOptions
Source§impl PartialEq for CommandOptions
impl PartialEq for CommandOptions
impl StructuralPartialEq for CommandOptions
Source§impl<C: Default> TryRead<'_, C> for CommandOptions
impl<C: Default> TryRead<'_, C> for CommandOptions
Auto Trait Implementations§
impl Freeze for CommandOptions
impl RefUnwindSafe for CommandOptions
impl Send for CommandOptions
impl Sync for CommandOptions
impl Unpin for CommandOptions
impl UnsafeUnpin for CommandOptions
impl UnwindSafe for CommandOptions
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