Enum Speed
pub enum Speed<A> {
Hal(A),
Low,
Medium,
High,
VeryHigh,
}
Expand description
Speed setting of an output.
Speed can be increased when needed, at the price of increasing high-frequency noise.
This enum allows to either use high-level, portable values, roughly normalized across HALs, or to use HAL-specific values if needed.
Variants§
Hal(A)
HAL-specific speed setting.
Low
Low speed.
Medium
Medium speed.
High
High speed.
VeryHigh
Very high speed.
Trait Implementations§
impl<A> Copy for Speed<A>where
A: Copy,
impl<A> Eq for Speed<A>where
A: Eq,
impl<A> StructuralPartialEq for Speed<A>
Auto Trait Implementations§
impl<A> Freeze for Speed<A>where
A: Freeze,
impl<A> RefUnwindSafe for Speed<A>where
A: RefUnwindSafe,
impl<A> Send for Speed<A>where
A: Send,
impl<A> Sync for Speed<A>where
A: Sync,
impl<A> Unpin for Speed<A>where
A: Unpin,
impl<A> UnwindSafe for Speed<A>where
A: UnwindSafe,
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