pub struct NotifyEvent(/* private fields */);
Expand description
Wraps a zx::Event
and implements DriverNotify
Implements DriverNotify
by setting the appropriate signals on a zx::Event
to notify the
machina VMM that the guest needs an interrupt.
The appropriate zx::Event
to use for this can be found in the StartInfo
provided as the
first message to a device.
Implementations§
Source§impl NotifyEvent
impl NotifyEvent
Sourcepub fn new(event: Event) -> NotifyEvent
pub fn new(event: Event) -> NotifyEvent
Construct a new NotifyEvent
Source§impl NotifyEvent
impl NotifyEvent
pub fn signal_queue(&self) -> Result<(), Status>
pub fn signal_config(&self) -> Result<(), Status>
Trait Implementations§
Source§impl Clone for NotifyEvent
impl Clone for NotifyEvent
Source§fn clone(&self) -> NotifyEvent
fn clone(&self) -> NotifyEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl DriverNotify for NotifyEvent
impl DriverNotify for NotifyEvent
Auto Trait Implementations§
impl Freeze for NotifyEvent
impl RefUnwindSafe for NotifyEvent
impl Send for NotifyEvent
impl Sync for NotifyEvent
impl Unpin for NotifyEvent
impl UnwindSafe for NotifyEvent
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