pub struct AsyncFlag { /* private fields */ }
Available on crate features
alloc
and futures
only.Expand description
Async flag that will be completed when all references to Flag
have been dropped or marked.
Implementations§
Source§impl AsyncFlag
impl AsyncFlag
pub fn has_subscriber(&self) -> bool
Sourcepub fn subscribe(&self) -> AsyncSubscribe ⓘ
pub fn subscribe(&self) -> AsyncSubscribe ⓘ
Creates a new subscriber to this flag.
Sourcepub fn silent_drop(self)
pub fn silent_drop(self)
Drops the flag without notifying it as completed. This method may leak memory.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AsyncFlag
impl RefUnwindSafe for AsyncFlag
impl Send for AsyncFlag
impl Sync for AsyncFlag
impl Unpin for AsyncFlag
impl UnwindSafe for AsyncFlag
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