#[non_exhaustive]pub enum TimingEdge {
ZeroHigh,
ZeroLow,
OneHigh,
OneLow,
}Expand description
Identifies one of the four timing edges in a single-wire protocol bit: T0H (zero high), T0L (zero low), T1H (one high), T1L (one low).
Used by SpiCodecPlanError to report which edge failed validation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ZeroHigh
Logical 0, high phase.
ZeroLow
Logical 0, low phase.
OneHigh
Logical 1, high phase.
OneLow
Logical 1, low phase.
Trait Implementations§
Source§impl Clone for TimingEdge
impl Clone for TimingEdge
impl Copy for TimingEdge
Source§impl Debug for TimingEdge
impl Debug for TimingEdge
Source§impl Display for TimingEdge
impl Display for TimingEdge
impl Eq for TimingEdge
Source§impl PartialEq for TimingEdge
impl PartialEq for TimingEdge
impl StructuralPartialEq for TimingEdge
Auto Trait Implementations§
impl Freeze for TimingEdge
impl RefUnwindSafe for TimingEdge
impl Send for TimingEdge
impl Sync for TimingEdge
impl Unpin for TimingEdge
impl UnsafeUnpin for TimingEdge
impl UnwindSafe for TimingEdge
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