Struct tokio::sync::notify::AtomicNotification
source · struct AtomicNotification(AtomicUsize);
Expand description
Notification for a Waiter
.
This struct is equivalent to Option<Notification>
, but uses
AtomicUsize
inside for atomic operations.
Tuple Fields§
§0: AtomicUsize
Implementations§
source§impl AtomicNotification
impl AtomicNotification
fn none() -> Self
sourcefn store_release(&self, notification: Notification)
fn store_release(&self, notification: Notification)
Store-release a notification. This method should be called exactly once.
fn load(&self, ordering: Ordering) -> Option<Notification>
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for AtomicNotification
impl RefUnwindSafe for AtomicNotification
impl Send for AtomicNotification
impl Sync for AtomicNotification
impl Unpin for AtomicNotification
impl UnwindSafe for AtomicNotification
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