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 Ord for Semstat
impl Ord for Semstat
§impl PartialOrd for Semstat
impl PartialOrd for Semstat
impl Copy for Semstat
impl Eq 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 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