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§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
)