Struct web_embedded_hal::components::Signal
source · [−]pub struct Signal<T> { /* private fields */ }
Expand description
Synchronization primitive. Allows creating awaitable signals that may be passed between tasks.
For a simple use-case where the receiver is only ever interested in the latest value of
something, Signals work well. For more advanced use cases, you might want to use Channel
instead..
Signals are generally declared as being a static const and then borrowed as required.
Implementations
Trait Implementations
Auto Trait Implementations
impl<T> !RefUnwindSafe for Signal<T>
impl<T> Unpin for Signal<T> where
T: Unpin,
impl<T> UnwindSafe for Signal<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more