Struct cros_asyncv2::Event
source · [−]pub struct Event {
inner: Event,
}
Expand description
An asynchronous version of a base::Event
.
Fields
inner: Event
Implementations
sourceimpl Event
impl Event
sourcepub async fn next_val(&self) -> Result<u64>
pub async fn next_val(&self) -> Result<u64>
Wait until the event is signaled.
Blocks until the internal counter for the Event
reaches a nonzero value, at which point
the internal counter for the Event
is reset to 0 and the previous value is returned.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
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