pub enum DShotTelemetry {
EncodingError,
Erpm(u16),
Temp(u8),
Voltage(u8),
Amps(u8),
Debug1(u8),
Debug2(u8),
Debug3(u8),
Event(u8),
}Expand description
Telemetry payload decoded from a DSHOT ESC.
Variants§
Trait Implementations§
Source§impl<'__de, __Context> BorrowDecode<'__de, __Context> for DShotTelemetry
impl<'__de, __Context> BorrowDecode<'__de, __Context> for DShotTelemetry
Source§fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>(
decoder: &mut __D,
) -> Result<Self, DecodeError>
fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>( decoder: &mut __D, ) -> Result<Self, DecodeError>
Attempt to decode this type with the given BorrowDecode.
Source§impl Clone for DShotTelemetry
impl Clone for DShotTelemetry
Source§fn clone(&self) -> DShotTelemetry
fn clone(&self) -> DShotTelemetry
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DShotTelemetry
impl Debug for DShotTelemetry
Source§impl<__Context> Decode<__Context> for DShotTelemetry
impl<__Context> Decode<__Context> for DShotTelemetry
Source§impl<'de> Deserialize<'de> for DShotTelemetry
impl<'de> Deserialize<'de> for DShotTelemetry
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Encode for DShotTelemetry
impl Encode for DShotTelemetry
Source§impl PartialEq for DShotTelemetry
impl PartialEq for DShotTelemetry
Source§impl Serialize for DShotTelemetry
impl Serialize for DShotTelemetry
impl Copy for DShotTelemetry
impl Eq for DShotTelemetry
impl StructuralPartialEq for DShotTelemetry
Auto Trait Implementations§
impl Freeze for DShotTelemetry
impl RefUnwindSafe for DShotTelemetry
impl Send for DShotTelemetry
impl Sync for DShotTelemetry
impl Unpin for DShotTelemetry
impl UnsafeUnpin for DShotTelemetry
impl UnwindSafe for DShotTelemetry
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.