pub struct Signal<T: Copy> { /* private fields */ }
Expand description
A “latest only” value store with unlimited writers and async waiting.
Implementations§
source§impl<T: Copy> Signal<T>
impl<T: Copy> Signal<T>
sourcepub fn split(&self) -> (SignalWriter<'_, T>, SignalReader<'_, T>)
pub fn split(&self) -> (SignalWriter<'_, T>, SignalReader<'_, T>)
Split the signal into a writer and reader.
Trait Implementations§
impl<T: Copy> Send for Signal<T>
impl<T: Copy> Sync for Signal<T>
Auto Trait Implementations§
impl<T> !Freeze for Signal<T>
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§
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