Struct utils_atomics::flag::AsyncFlag
source · [−]pub struct AsyncFlag { /* private fields */ }
Available on crate features
alloc
and futures
only.Expand description
Async flag that completes when marked or droped.
Implementations
sourceimpl AsyncFlag
impl AsyncFlag
sourcepub fn subscribe(&self) -> AsyncSubscribeⓘNotable traits for AsyncSubscribeimpl Future for AsyncSubscribe type Output = ();
pub fn subscribe(&self) -> AsyncSubscribeⓘNotable traits for AsyncSubscribeimpl Future for AsyncSubscribe type Output = ();
Creates a new subscriber to this flag.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for AsyncFlag
impl Send for AsyncFlag
impl Sync for AsyncFlag
impl Unpin for AsyncFlag
impl UnwindSafe for AsyncFlag
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more