pub enum BrakeMode {
Coast,
Brake,
Hold,
}Expand description
The brake mode of the motor
Variants§
Coast
The motor will freely coast to a stop. No active braking is applied.
Brake
The motor will actively brake, resisting motion until it comes to a stop.
Slows the motor faster than Coast but does not hold position.
Hold
The motor will actively hold its current position once stopped. Useful for precise positioning, but can consume more power.
Trait Implementations§
Source§impl Ord for BrakeMode
impl Ord for BrakeMode
Source§impl PartialOrd for BrakeMode
impl PartialOrd for BrakeMode
impl Copy for BrakeMode
impl Eq for BrakeMode
impl StructuralPartialEq for BrakeMode
Auto Trait Implementations§
impl Freeze for BrakeMode
impl RefUnwindSafe for BrakeMode
impl Send for BrakeMode
impl Sync for BrakeMode
impl Unpin for BrakeMode
impl UnwindSafe for BrakeMode
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