#[repr(u8)]pub enum NmtCommandSpecifier {
Start = 1,
Stop = 2,
EnterPreOp = 128,
ResetApp = 129,
ResetComm = 130,
}Expand description
The NMT state transition command specifier
Variants§
Start = 1
Indicates device should transition to the Operation state
Stop = 2
Indicates device should transition to the Stopped state
EnterPreOp = 128
Indicates device should transition to the PreOperational state
ResetApp = 129
Indicates device should perform an application reset
ResetComm = 130
Indicates device should perform a communications reset
Implementations§
Source§impl NmtCommandSpecifier
impl NmtCommandSpecifier
Sourcepub fn from_byte(b: u8) -> Result<Self, MessageError>
pub fn from_byte(b: u8) -> Result<Self, MessageError>
Create an NmtCommandCmd from the byte value transmitted in the message
Trait Implementations§
Source§impl Clone for NmtCommandSpecifier
impl Clone for NmtCommandSpecifier
Source§fn clone(&self) -> NmtCommandSpecifier
fn clone(&self) -> NmtCommandSpecifier
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 NmtCommandSpecifier
impl Debug for NmtCommandSpecifier
Source§impl PartialEq for NmtCommandSpecifier
impl PartialEq for NmtCommandSpecifier
impl Copy for NmtCommandSpecifier
impl StructuralPartialEq for NmtCommandSpecifier
Auto Trait Implementations§
impl Freeze for NmtCommandSpecifier
impl RefUnwindSafe for NmtCommandSpecifier
impl Send for NmtCommandSpecifier
impl Sync for NmtCommandSpecifier
impl Unpin for NmtCommandSpecifier
impl UnwindSafe for NmtCommandSpecifier
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