dshot_codec/
dshot_errors.rs1#[derive(Debug, Clone, Copy, PartialEq, Eq)]
2#[cfg_attr(feature = "defmt", derive(defmt::Format))]
3pub enum DshotError {
4 NotImplemented,
5 TxTimeout,
6 RxTimeout,
8 NoGcrData,
9 InvalidDshotCommand,
10 InvalidDshotSpeed,
11 InvalidTelemetry,
12 InvalidTelemetryType,
13 InvalidErpm,
14 InvalidRunLength,
15 InvalidNrziData,
16 InvalidChecksum,
17}
18
19#[cfg(test)]
20mod test_traits {
21 use super::*;
22
23 fn is_full_eq_no_default<T: Sized + Send + Sync + Unpin + Copy + Clone + Eq + PartialEq>() {}
24
25 #[test]
26 fn normal_types() {
27 is_full_eq_no_default::<DshotError>();
28 }
29}