Enum dynamixel2::instructions::FactoryResetKind
source · #[repr(u8)]pub enum FactoryResetKind {
ResetAll = 255,
KeepId = 1,
KeepIdAndBaudRate = 2,
}
Expand description
The kind of factory reset to perform.
Variants§
ResetAll = 255
Reset all settings, including the motor ID and baud rate.
KeepId = 1
Reset all settings except for the motor ID.
KeepIdAndBaudRate = 2
Reset all settings except for the motor ID and baud rate.
Trait Implementations§
source§impl Clone for FactoryResetKind
impl Clone for FactoryResetKind
source§fn clone(&self) -> FactoryResetKind
fn clone(&self) -> FactoryResetKind
Returns a copy 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 FactoryResetKind
impl Debug for FactoryResetKind
source§impl Hash for FactoryResetKind
impl Hash for FactoryResetKind
source§impl Ord for FactoryResetKind
impl Ord for FactoryResetKind
source§fn cmp(&self, other: &FactoryResetKind) -> Ordering
fn cmp(&self, other: &FactoryResetKind) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for FactoryResetKind
impl PartialEq for FactoryResetKind
source§fn eq(&self, other: &FactoryResetKind) -> bool
fn eq(&self, other: &FactoryResetKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for FactoryResetKind
impl PartialOrd for FactoryResetKind
source§fn partial_cmp(&self, other: &FactoryResetKind) -> Option<Ordering>
fn partial_cmp(&self, other: &FactoryResetKind) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for FactoryResetKind
impl Eq for FactoryResetKind
impl StructuralPartialEq for FactoryResetKind
Auto Trait Implementations§
impl Freeze for FactoryResetKind
impl RefUnwindSafe for FactoryResetKind
impl Send for FactoryResetKind
impl Sync for FactoryResetKind
impl Unpin for FactoryResetKind
impl UnwindSafe for FactoryResetKind
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