Struct virtio_sys::virtio_vsock::virtio_vsock_hdr
source · #[repr(C, packed(1))]pub struct virtio_vsock_hdr {
pub src_cid: Le64,
pub dst_cid: Le64,
pub src_port: Le32,
pub dst_port: Le32,
pub len: Le32,
pub type_: Le16,
pub op: Le16,
pub flags: Le32,
pub buf_alloc: Le32,
pub fwd_cnt: Le32,
}
Fields§
§src_cid: Le64
§dst_cid: Le64
§src_port: Le32
§dst_port: Le32
§len: Le32
§type_: Le16
§op: Le16
§flags: Le32
§buf_alloc: Le32
§fwd_cnt: Le32
Trait Implementations§
source§impl Clone for virtio_vsock_hdr
impl Clone for virtio_vsock_hdr
source§fn clone(&self) -> virtio_vsock_hdr
fn clone(&self) -> virtio_vsock_hdr
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 virtio_vsock_hdr
impl Debug for virtio_vsock_hdr
source§impl Default for virtio_vsock_hdr
impl Default for virtio_vsock_hdr
source§fn default() -> virtio_vsock_hdr
fn default() -> virtio_vsock_hdr
Returns the “default value” for a type. Read more
impl Copy for virtio_vsock_hdr
Auto Trait Implementations§
impl RefUnwindSafe for virtio_vsock_hdr
impl Send for virtio_vsock_hdr
impl Sync for virtio_vsock_hdr
impl Unpin for virtio_vsock_hdr
impl UnwindSafe for virtio_vsock_hdr
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