Struct zx::GuestIoPacket
source · pub struct GuestIoPacket(/* private fields */);
Expand description
Contents of a guest I/O packet generated by the kernel. This is a type-safe wrapper for zx_packet_guest_io_t
Implementations§
source§impl GuestIoPacket
impl GuestIoPacket
pub fn from_raw(io: zx_packet_guest_io_t) -> GuestIoPacket
sourcepub fn access_size(&self) -> Option<PortAccessSize>
pub fn access_size(&self) -> Option<PortAccessSize>
Size of the access.
Returns None
should it find an invalid size in the packet.
sourcepub fn access_type(&self) -> AccessType
pub fn access_type(&self) -> AccessType
Type of access (read or write).
Trait Implementations§
source§impl Clone for GuestIoPacket
impl Clone for GuestIoPacket
source§fn clone(&self) -> GuestIoPacket
fn clone(&self) -> GuestIoPacket
Returns a copy 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 Debug for GuestIoPacket
impl Debug for GuestIoPacket
impl Copy for GuestIoPacket
Auto Trait Implementations§
impl Freeze for GuestIoPacket
impl RefUnwindSafe for GuestIoPacket
impl Send for GuestIoPacket
impl Sync for GuestIoPacket
impl Unpin for GuestIoPacket
impl UnwindSafe for GuestIoPacket
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)