Struct virtio_vsock::packet::PacketHeader
source · #[repr(C, packed)]pub struct PacketHeader { /* private fields */ }Expand description
The vsock packet header structure.
Trait Implementations§
source§impl ByteValued for PacketHeader
impl ByteValued for PacketHeader
source§fn from_slice(data: &[u8]) -> Option<&Self>
fn from_slice(data: &[u8]) -> Option<&Self>
Converts a slice of raw data into a reference of
Self. Read moresource§fn from_mut_slice(data: &mut [u8]) -> Option<&mut Self>
fn from_mut_slice(data: &mut [u8]) -> Option<&mut Self>
Converts a mutable slice of raw data into a mutable reference of
Self. Read moresource§impl Clone for PacketHeader
impl Clone for PacketHeader
source§fn clone(&self) -> PacketHeader
fn clone(&self) -> PacketHeader
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 PacketHeader
impl Debug for PacketHeader
source§impl Default for PacketHeader
impl Default for PacketHeader
source§fn default() -> PacketHeader
fn default() -> PacketHeader
Returns the “default value” for a type. Read more
source§impl PartialEq<PacketHeader> for PacketHeader
impl PartialEq<PacketHeader> for PacketHeader
source§fn eq(&self, other: &PacketHeader) -> bool
fn eq(&self, other: &PacketHeader) -> bool
This method tests for
self and other values to be equal, and is used
by ==.