pub struct Backed<T> { /* private fields */ }Expand description
A signal whose producer is started by the first reader that calls
open. The value is not handed out until the
producer is running and ready. The gate counts readers so the producer can
retire once none are left (unwatched, TaskNode::retire).
Implementations§
Trait Implementations§
Source§impl<T: Sync + 'static> Gated for Backed<T>
impl<T: Sync + 'static> Gated for Backed<T>
Source§impl<T: Observable> Observable for Backed<T>
Available on crate feature coupling-observe only.
impl<T: Observable> Observable for Backed<T>
Available on crate feature
coupling-observe only.Source§fn change_token(&self) -> u32
fn change_token(&self) -> u32
Return a token that changes when the signal is written.
Auto Trait Implementations§
impl<T> !Freeze for Backed<T>
impl<T> !RefUnwindSafe for Backed<T>
impl<T> Send for Backed<T>where
T: Send,
impl<T> Sync for Backed<T>where
T: Sync,
impl<T> Unpin for Backed<T>where
T: Unpin,
impl<T> UnsafeUnpin for Backed<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Backed<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