pub struct MsgHeader {
pub kind: MsgKind,
pub cid: u32,
pub payload_len: u32,
/* private fields */
}Expand description
Wire header for all virtqueue messages.
Fields§
§kind: MsgKindDiscriminates the message type.
cid: u32Caller-assigned correlation ID. Responses echo the request’s ID.
payload_len: u32Total number of payload bytes in this logical message.
Implementations§
Trait Implementations§
Source§impl CheckedBitPattern for MsgHeader
impl CheckedBitPattern for MsgHeader
Source§type Bits = MsgHeaderBits
type Bits = MsgHeaderBits
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.Source§fn is_valid_bit_pattern(bits: &MsgHeaderBits) -> bool
fn is_valid_bit_pattern(bits: &MsgHeaderBits) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.impl Copy for MsgHeader
impl Eq for MsgHeader
impl NoUninit for MsgHeader
impl StructuralPartialEq for MsgHeader
Auto Trait Implementations§
impl Freeze for MsgHeader
impl RefUnwindSafe for MsgHeader
impl Send for MsgHeader
impl Sync for MsgHeader
impl Unpin for MsgHeader
impl UnsafeUnpin for MsgHeader
impl UnwindSafe for MsgHeader
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