Enum Semstat
#[repr(u8)]pub enum Semstat {
Free = 0,
Cpu = 1,
Spis = 2,
CpuPending = 3,
}Variants§
Free = 0
Semaphore is free.
Cpu = 1
Semaphore is assigned to CPU.
Spis = 2
Semaphore is assigned to SPI slave.
CpuPending = 3
Semaphore is assigned to SPI but a handover to the CPU is pending.
Implementations§
Trait Implementations§
impl Copy for Semstat
impl Eq for Semstat
§impl Ord for Semstat
impl Ord for Semstat
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
§impl PartialOrd for Semstat
impl PartialOrd for Semstat
impl StructuralPartialEq for Semstat
Auto Trait Implementations§
impl Freeze for Semstat
impl RefUnwindSafe for Semstat
impl Send for Semstat
impl Sync for Semstat
impl Unpin for Semstat
impl UnsafeUnpin for Semstat
impl UnwindSafe for Semstat
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