pub struct Signal { /* private fields */ }Expand description
See the module docs.
Implementations§
Source§impl Signal
impl Signal
Sourcepub fn signal(&self)
pub fn signal(&self)
External/ISR side: latch the signal and wake the registered waiter, if any. Safe to call from Handler mode / an interrupt, from either hart on an SMP build, or from plain task code.
Sourcepub fn try_take(&self) -> bool
pub fn try_take(&self) -> bool
Non-blocking consume: clears and returns whether the signal had fired. Usable from a preemptive task, or from boot code before the scheduler starts.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Signal
impl RefUnwindSafe for Signal
impl Send for Signal
impl Unpin for Signal
impl UnsafeUnpin for Signal
impl UnwindSafe for Signal
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