#[repr(u8)]pub enum ControlMode {
Standby = 0,
CanControl = 1,
Teach = 2,
Ethernet = 3,
Wifi = 4,
Remote = 5,
LinkTeach = 6,
OfflineTrajectory = 7,
}Expand description
控制模式(反馈帧版本,0x2A1)
注意:反馈帧和控制指令的 ControlMode 枚举值不同。 反馈帧包含完整定义(0x00-0x07),控制指令只支持部分值。
Variants§
Standby = 0
待机模式
CanControl = 1
CAN指令控制模式
Teach = 2
示教模式
Ethernet = 3
以太网控制模式
Wifi = 4
wifi控制模式
Remote = 5
遥控器控制模式(仅反馈帧有,控制指令不支持)
LinkTeach = 6
联动示教输入模式(仅反馈帧有,控制指令不支持)
OfflineTrajectory = 7
离线轨迹模式
Trait Implementations§
Source§impl Clone for ControlMode
impl Clone for ControlMode
Source§fn clone(&self) -> ControlMode
fn clone(&self) -> ControlMode
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 ControlMode
impl Debug for ControlMode
Source§impl Default for ControlMode
impl Default for ControlMode
Source§fn default() -> ControlMode
fn default() -> ControlMode
Returns the “default value” for a type. Read more
Source§impl From<u8> for ControlMode
impl From<u8> for ControlMode
Source§fn from(number: u8) -> ControlMode
fn from(number: u8) -> ControlMode
Converts to this type from the input type.
Source§impl FromPrimitive for ControlMode
impl FromPrimitive for ControlMode
type Primitive = u8
fn from_primitive( number: <ControlMode as FromPrimitive>::Primitive, ) -> ControlMode
Source§impl PartialEq for ControlMode
impl PartialEq for ControlMode
impl Copy for ControlMode
impl Eq for ControlMode
impl StructuralPartialEq for ControlMode
Auto Trait Implementations§
impl Freeze for ControlMode
impl RefUnwindSafe for ControlMode
impl Send for ControlMode
impl Sync for ControlMode
impl Unpin for ControlMode
impl UnwindSafe for ControlMode
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