pub enum DshotSpeed {
Dshot150 = 0,
Dshot300 = 1,
Dshot600 = 2,
Dshot1200 = 3,
}Variants§
Implementations§
Trait Implementations§
Source§impl Clone for DshotSpeed
impl Clone for DshotSpeed
Source§fn clone(&self) -> DshotSpeed
fn clone(&self) -> DshotSpeed
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DshotSpeed
Source§impl Debug for DshotSpeed
impl Debug for DshotSpeed
Source§impl Default for DshotSpeed
impl Default for DshotSpeed
Source§fn default() -> DshotSpeed
fn default() -> DshotSpeed
Returns the “default value” for a type. Read more
impl Eq for DshotSpeed
Source§impl PartialEq for DshotSpeed
impl PartialEq for DshotSpeed
impl StructuralPartialEq for DshotSpeed
Source§impl TryFrom<u8> for DshotSpeed
impl TryFrom<u8> for DshotSpeed
Source§fn try_from(value: u8) -> Result<Self, DshotError>
fn try_from(value: u8) -> Result<Self, DshotError>
Validating conversion from u8 to Protocol. Invalid values return error.
Source§type Error = DshotError
type Error = DshotError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for DshotSpeed
impl RefUnwindSafe for DshotSpeed
impl Send for DshotSpeed
impl Sync for DshotSpeed
impl Unpin for DshotSpeed
impl UnsafeUnpin for DshotSpeed
impl UnwindSafe for DshotSpeed
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