pub struct BroadcastNotify { /* private fields */ }Expand description
Wake several parts of your program for the same change, such as the start of a new frame.
Unlike Notify, each notification can wake all waiting callers, not just one.
Implementations§
Source§impl BroadcastNotify
impl BroadcastNotify
pub fn new() -> Self
Sourcepub fn notify(&self)
pub fn notify(&self)
Wakes every caller whose wait was created before this call. Callers that start waiting afterward will wait for the next wake-up instead.
Sourcepub fn notified(&self) -> NotifiedBroadcast ⓘ
pub fn notified(&self) -> NotifiedBroadcast ⓘ
Waits for the next wake-up after this call, even if .await comes later.
Trait Implementations§
Source§impl Clone for BroadcastNotify
impl Clone for BroadcastNotify
Auto Trait Implementations§
impl !RefUnwindSafe for BroadcastNotify
impl !Send for BroadcastNotify
impl !Sync for BroadcastNotify
impl !UnwindSafe for BroadcastNotify
impl Forget for BroadcastNotify
impl Freeze for BroadcastNotify
impl Unpin for BroadcastNotify
impl UnsafeUnpin for BroadcastNotify
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