pub enum ControlModeCommand {
Standby = 0,
CanControl = 1,
Teach = 2,
Ethernet = 3,
Wifi = 4,
OfflineTrajectory = 7,
}Expand description
控制模式(控制指令版本,0x151)
注意:控制指令的 ControlMode 与反馈帧的 ControlMode 不同。 控制指令只支持部分值(0x00, 0x01, 0x02, 0x03, 0x04, 0x07), 不支持 0x05(Remote)和 0x06(LinkTeach)。
Variants§
Standby = 0
待机模式
CanControl = 1
CAN指令控制模式
Teach = 2
示教模式
Ethernet = 3
以太网控制模式
Wifi = 4
wifi控制模式
OfflineTrajectory = 7
离线轨迹模式
Trait Implementations§
Source§impl Clone for ControlModeCommand
impl Clone for ControlModeCommand
Source§fn clone(&self) -> ControlModeCommand
fn clone(&self) -> ControlModeCommand
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 ControlModeCommand
impl Debug for ControlModeCommand
Source§impl Default for ControlModeCommand
impl Default for ControlModeCommand
Source§fn default() -> ControlModeCommand
fn default() -> ControlModeCommand
Returns the “default value” for a type. Read more
Source§impl PartialEq for ControlModeCommand
impl PartialEq for ControlModeCommand
Source§impl TryFrom<u8> for ControlModeCommand
impl TryFrom<u8> for ControlModeCommand
Source§type Error = ProtocolError
type Error = ProtocolError
The type returned in the event of a conversion error.
Source§fn try_from(
value: u8,
) -> Result<ControlModeCommand, <ControlModeCommand as TryFrom<u8>>::Error>
fn try_from( value: u8, ) -> Result<ControlModeCommand, <ControlModeCommand as TryFrom<u8>>::Error>
Performs the conversion.
impl Copy for ControlModeCommand
impl Eq for ControlModeCommand
impl StructuralPartialEq for ControlModeCommand
Auto Trait Implementations§
impl Freeze for ControlModeCommand
impl RefUnwindSafe for ControlModeCommand
impl Send for ControlModeCommand
impl Sync for ControlModeCommand
impl Unpin for ControlModeCommand
impl UnwindSafe for ControlModeCommand
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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