[][src]Enum pololu_smc::variable_types::BrakeAmount

pub enum BrakeAmount {
    Coasting,
    Braking,
    NotAvailable,
    Unknown,
}

If the motor is braking or coasting.

Variants

Coasting

Motor is coasting.

Braking

Motor is braking.

NotAvailable

Speed is not zero, so no brake amount is reported.

Unknown

Controller returned a value not specified in the offical user's guide.

Trait Implementations

impl Clone for BrakeAmount[src]

impl Copy for BrakeAmount[src]

impl Debug for BrakeAmount[src]

impl Eq for BrakeAmount[src]

impl From<u16> for BrakeAmount[src]

impl Hash for BrakeAmount[src]

impl Ord for BrakeAmount[src]

impl PartialEq<BrakeAmount> for BrakeAmount[src]

impl PartialOrd<BrakeAmount> for BrakeAmount[src]

impl StructuralEq for BrakeAmount[src]

impl StructuralPartialEq for BrakeAmount[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.