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