Struct cros_async::EventAsync
source · pub struct EventAsync {
pub(crate) io_source: IoSource<Event>,
}
Expand description
An async version of base::Event
.
Fields§
§io_source: IoSource<Event>
Implementations§
source§impl EventAsync
impl EventAsync
pub fn get_io_source_ref(&self) -> &IoSource<Event>
source§impl EventAsync
impl EventAsync
pub fn new(event: Event, ex: &Executor) -> AsyncResult<EventAsync>
sourcepub async fn next_val(&self) -> AsyncResult<u64>
pub async fn next_val(&self) -> AsyncResult<u64>
Gets the next value from the eventfd.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for EventAsync
impl Send for EventAsync
impl Sync for EventAsync
impl Unpin for EventAsync
impl !UnwindSafe for EventAsync
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