pub struct Chain<N = Waker> { /* private fields */ }Implementations§
Source§impl<N> Chain<N>
impl<N> Chain<N>
Sourcepub fn notify_one(&self) -> NotifyOne<'_, N>where
N: Subscriber,
pub fn notify_one(&self) -> NotifyOne<'_, N>where
N: Subscriber,
Constructs a Notifier for the first linked object.
At most one object is notified once the go-method is called and the
chain isn’t empty, but the caller may execute additional methods that
change which object is notified and what happens in that case.
The notified object (if any) is automatically removed from the chain.
Sourcepub fn notify_all(&self) -> NotifyAll<'_, N>where
N: Subscriber,
pub fn notify_all(&self) -> NotifyAll<'_, N>where
N: Subscriber,
Constructs a Notifier for all the linked objects.
Potentially all the objects in the chain are notified when the go
method is called, but the caller may execute additional methods that
change which objects are notified and what happens in that case.
All notified objects are automatically removed from the chain.
Trait Implementations§
Source§impl<N: Subscriber> Publisher for Chain<N>
impl<N: Subscriber> Publisher for Chain<N>
Source§impl<N: Subscriber> Subscriber for Chain<N>
impl<N: Subscriber> Subscriber for Chain<N>
Auto Trait Implementations§
impl<N = Waker> !Freeze for Chain<N>
impl<N = Waker> !RefUnwindSafe for Chain<N>
impl<N = Waker> !Send for Chain<N>
impl<N = Waker> !Sync for Chain<N>
impl<N> Unpin for Chain<N>
impl<N = Waker> !UnwindSafe for Chain<N>
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