#[repr(C)]pub struct async_guest_bell_trap {
pub state: async_state_t,
pub handler: async_guest_bell_trap_handler_t,
}Expand description
Holds context for a bell trap and its handler.
After successfully posting setting the trap, the client is responsible for retaining the structure in memory (and unmodified) until the guest has been destroyed or the dispatcher shuts down. There is no way to cancel a trap which has been set.
Fields§
§state: async_state_tPrivate state owned by the dispatcher, initialize to zero with |ASYNC_STATE_INIT|.
handler: async_guest_bell_trap_handler_tThe handler to invoke to handle the trap access.
Trait Implementations§
Source§impl Clone for async_guest_bell_trap
impl Clone for async_guest_bell_trap
Source§fn clone(&self) -> async_guest_bell_trap
fn clone(&self) -> async_guest_bell_trap
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for async_guest_bell_trap
impl Debug for async_guest_bell_trap
Source§impl Default for async_guest_bell_trap
impl Default for async_guest_bell_trap
Source§fn default() -> async_guest_bell_trap
fn default() -> async_guest_bell_trap
Returns the “default value” for a type. Read more
impl Copy for async_guest_bell_trap
Auto Trait Implementations§
impl Freeze for async_guest_bell_trap
impl RefUnwindSafe for async_guest_bell_trap
impl Send for async_guest_bell_trap
impl Sync for async_guest_bell_trap
impl Unpin for async_guest_bell_trap
impl UnsafeUnpin for async_guest_bell_trap
impl UnwindSafe for async_guest_bell_trap
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