#[non_exhaustive]#[repr(u8)]pub enum HomeState {
Relative = 0,
Rotor = 1,
Output = 2,
}Expand description
The homing/rezero state of the controller.
This indicates the reference frame for position values.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Relative = 0
Position is relative to power-on position
Rotor = 1
Position is relative to rotor position
Output = 2
Position is absolute (output-referenced)
Trait Implementations§
impl Copy for HomeState
impl Eq for HomeState
impl StructuralPartialEq for HomeState
Auto Trait Implementations§
impl Freeze for HomeState
impl RefUnwindSafe for HomeState
impl Send for HomeState
impl Sync for HomeState
impl Unpin for HomeState
impl UnsafeUnpin for HomeState
impl UnwindSafe for HomeState
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