Struct zx::UserPacket
source · pub struct UserPacket(/* private fields */);
Expand description
Contents of a user packet (one sent by port_queue
). This is a type-safe wrapper for
zx_packet_user_t.
Implementations§
source§impl UserPacket
impl UserPacket
pub fn from_u8_array(val: [u8; 32]) -> UserPacket
pub fn as_u8_array(&self) -> &[u8; 32]
pub fn as_mut_u8_array(&mut self) -> &mut [u8; 32]
Trait Implementations§
source§impl Clone for UserPacket
impl Clone for UserPacket
source§fn clone(&self) -> UserPacket
fn clone(&self) -> UserPacket
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 UserPacket
impl Debug for UserPacket
source§impl Default for UserPacket
impl Default for UserPacket
source§fn default() -> UserPacket
fn default() -> UserPacket
Returns the “default value” for a type. Read more
impl Copy for UserPacket
Auto Trait Implementations§
impl Freeze for UserPacket
impl RefUnwindSafe for UserPacket
impl Send for UserPacket
impl Sync for UserPacket
impl Unpin for UserPacket
impl UnwindSafe for UserPacket
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
)