pub struct AsyncFlag { /* private fields */ }
Available on crate features
alloc
and futures
only.Expand description
Async flag that completes when all it’s references are marked or droped.
This flag drops loudly by default (a.k.a will complete when dropped),
but can be droped silently with silent_drop
Implementations§
Source§impl AsyncFlag
impl AsyncFlag
pub fn has_subscriber(&self) -> bool
Sourcepub fn silent_drop(self)
pub fn silent_drop(self)
Drops the flag without marking 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