#[repr(u8)]pub enum NmtCommand {
StartRemoteNode = 1,
StopRemoteNode = 2,
EnterPreOperational = 128,
ResetNode = 129,
ResetCommunication = 130,
}Expand description
NMT 命令字节 (主站 → 节点)。
Variants§
StartRemoteNode = 1
0x01:进入 Operational。
StopRemoteNode = 2
0x02:进入 Stopped。
EnterPreOperational = 128
0x80:进入 Pre-Operational。
ResetNode = 129
0x81:复位节点。
ResetCommunication = 130
0x82:复位通讯。
Trait Implementations§
Source§impl Clone for NmtCommand
impl Clone for NmtCommand
Source§fn clone(&self) -> NmtCommand
fn clone(&self) -> NmtCommand
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 NmtCommand
Source§impl Debug for NmtCommand
impl Debug for NmtCommand
impl Eq for NmtCommand
Source§impl PartialEq for NmtCommand
impl PartialEq for NmtCommand
Source§fn eq(&self, other: &NmtCommand) -> bool
fn eq(&self, other: &NmtCommand) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for NmtCommand
Auto Trait Implementations§
impl Freeze for NmtCommand
impl RefUnwindSafe for NmtCommand
impl Send for NmtCommand
impl Sync for NmtCommand
impl Unpin for NmtCommand
impl UnsafeUnpin for NmtCommand
impl UnwindSafe for NmtCommand
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