pub struct Event<'d>(/* private fields */);Expand description
A completion emitted by the driver.
Its payload is inspectable through Event::kind or consumable through
Event::into_kind, but safe code outside the driver cannot mint the
completion authority itself.
ⓘ
use dope_core::io::{Event, event};
let _ = Event(event::Kind::Shutdown);ⓘ
use dope_core::{driver::route, io};
let _ = io::event::send::Completion::new(route::SHUTDOWN, io::SendEvent::Sent(0));Implementations§
Trait Implementations§
Source§impl<'d> From<Completion<'d>> for Event<'d>
impl<'d> From<Completion<'d>> for Event<'d>
Source§fn from(completion: Completion<'d>) -> Self
fn from(completion: Completion<'d>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'d> !RefUnwindSafe for Event<'d>
impl<'d> !Send for Event<'d>
impl<'d> !Sync for Event<'d>
impl<'d> !UnwindSafe for Event<'d>
impl<'d> Freeze for Event<'d>
impl<'d> Unpin for Event<'d>
impl<'d> UnsafeUnpin for Event<'d>
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