pub struct NotificationData(/* private fields */);Expand description
Notification Data.
Implementations§
Source§impl NotificationData
 
impl NotificationData
Sourcepub const fn with_vqn_checked(self, value: u16) -> Result<Self, ()>
 
pub const fn with_vqn_checked(self, value: u16) -> Result<Self, ()>
VQ number to be notified.
Bits: 0..16
Sourcepub const fn set_vqn_checked(&mut self, value: u16) -> Result<(), ()>
 
pub const fn set_vqn_checked(&mut self, value: u16) -> Result<(), ()>
VQ number to be notified.
Bits: 0..16
Sourcepub const fn next_off(&self) -> u16
 
pub const fn next_off(&self) -> u16
Offset
within the ring where the next available ring entry
will be written.
When VIRTIO_F_RING_PACKED has not been negotiated this refers to the
15 least significant bits of the available index.
When VIRTIO_F_RING_PACKED has been negotiated this refers to the offset
(in units of descriptor entries)
within the descriptor ring where the next available
descriptor will be written.
Bits: 16..31
Sourcepub const fn with_next_off_checked(self, value: u16) -> Result<Self, ()>
 
pub const fn with_next_off_checked(self, value: u16) -> Result<Self, ()>
Offset
within the ring where the next available ring entry
will be written.
When VIRTIO_F_RING_PACKED has not been negotiated this refers to the
15 least significant bits of the available index.
When VIRTIO_F_RING_PACKED has been negotiated this refers to the offset
(in units of descriptor entries)
within the descriptor ring where the next available
descriptor will be written.
Bits: 16..31
Sourcepub const fn with_next_off(self, value: u16) -> Self
 
pub const fn with_next_off(self, value: u16) -> Self
Offset
within the ring where the next available ring entry
will be written.
When VIRTIO_F_RING_PACKED has not been negotiated this refers to the
15 least significant bits of the available index.
When VIRTIO_F_RING_PACKED has been negotiated this refers to the offset
(in units of descriptor entries)
within the descriptor ring where the next available
descriptor will be written.
Bits: 16..31
Sourcepub const fn set_next_off(&mut self, value: u16)
 
pub const fn set_next_off(&mut self, value: u16)
Offset
within the ring where the next available ring entry
will be written.
When VIRTIO_F_RING_PACKED has not been negotiated this refers to the
15 least significant bits of the available index.
When VIRTIO_F_RING_PACKED has been negotiated this refers to the offset
(in units of descriptor entries)
within the descriptor ring where the next available
descriptor will be written.
Bits: 16..31
Sourcepub const fn set_next_off_checked(&mut self, value: u16) -> Result<(), ()>
 
pub const fn set_next_off_checked(&mut self, value: u16) -> Result<(), ()>
Offset
within the ring where the next available ring entry
will be written.
When VIRTIO_F_RING_PACKED has not been negotiated this refers to the
15 least significant bits of the available index.
When VIRTIO_F_RING_PACKED has been negotiated this refers to the offset
(in units of descriptor entries)
within the descriptor ring where the next available
descriptor will be written.
Bits: 16..31
Sourcepub const fn next_wrap(&self) -> u8
 
pub const fn next_wrap(&self) -> u8
Wrap Counter.
With VIRTIO_F_RING_PACKED this is the wrap counter
referring to the next available descriptor.
Without VIRTIO_F_RING_PACKED this is the most significant bit
(bit 15) of the available index.
Bits: 31..32
Sourcepub const fn with_next_wrap_checked(self, value: u8) -> Result<Self, ()>
 
pub const fn with_next_wrap_checked(self, value: u8) -> Result<Self, ()>
Wrap Counter.
With VIRTIO_F_RING_PACKED this is the wrap counter
referring to the next available descriptor.
Without VIRTIO_F_RING_PACKED this is the most significant bit
(bit 15) of the available index.
Bits: 31..32
Sourcepub const fn with_next_wrap(self, value: u8) -> Self
 
pub const fn with_next_wrap(self, value: u8) -> Self
Wrap Counter.
With VIRTIO_F_RING_PACKED this is the wrap counter
referring to the next available descriptor.
Without VIRTIO_F_RING_PACKED this is the most significant bit
(bit 15) of the available index.
Bits: 31..32
Sourcepub const fn set_next_wrap(&mut self, value: u8)
 
pub const fn set_next_wrap(&mut self, value: u8)
Wrap Counter.
With VIRTIO_F_RING_PACKED this is the wrap counter
referring to the next available descriptor.
Without VIRTIO_F_RING_PACKED this is the most significant bit
(bit 15) of the available index.
Bits: 31..32
Sourcepub const fn set_next_wrap_checked(&mut self, value: u8) -> Result<(), ()>
 
pub const fn set_next_wrap_checked(&mut self, value: u8) -> Result<(), ()>
Wrap Counter.
With VIRTIO_F_RING_PACKED this is the wrap counter
referring to the next available descriptor.
Without VIRTIO_F_RING_PACKED this is the most significant bit
(bit 15) of the available index.
Bits: 31..32
Source§impl NotificationData
 
impl NotificationData
Sourcepub const fn with_next_idx(self, value: u16) -> Self
 
pub const fn with_next_idx(self, value: u16) -> Self
Sourcepub fn set_next_idx(&mut self, value: u16)
 
pub fn set_next_idx(&mut self, value: u16)
Trait Implementations§
Source§impl Clone for NotificationData
 
impl Clone for NotificationData
Source§fn clone(&self) -> NotificationData
 
fn clone(&self) -> NotificationData
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
source. Read more