Struct virtio_queue_ser::QueueStateSer
source · pub struct QueueStateSer {
pub max_size: u16,
pub next_avail: u16,
pub next_used: u16,
pub event_idx_enabled: bool,
pub size: u16,
pub ready: bool,
pub desc_table: u64,
pub avail_ring: u64,
pub used_ring: u64,
}Expand description
Wrapper over a QueueState that has serialization capabilities.
Fields§
§max_size: u16The maximum size in elements offered by the device.
next_avail: u16Tail position of the available ring.
next_used: u16Head position of the used ring.
event_idx_enabled: boolVIRTIO_F_RING_EVENT_IDX negotiated.
size: u16The queue size in elements the driver selected.
ready: boolIndicates if the queue finished with the configuration.
desc_table: u64Guest physical address of the descriptor table.
avail_ring: u64Guest physical address of the available ring.
used_ring: u64Guest physical address of the used ring.
Trait Implementations§
source§impl Clone for QueueStateSer
impl Clone for QueueStateSer
source§fn clone(&self) -> QueueStateSer
fn clone(&self) -> QueueStateSer
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 QueueStateSer
impl Debug for QueueStateSer
source§impl Default for QueueStateSer
impl Default for QueueStateSer
source§impl<'de> Deserialize<'de> for QueueStateSer
impl<'de> Deserialize<'de> for QueueStateSer
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<&QueueState> for QueueStateSer
impl From<&QueueState> for QueueStateSer
source§fn from(state: &QueueState) -> Self
fn from(state: &QueueState) -> Self
Converts to this type from the input type.
source§impl From<&QueueStateSer> for QueueState
impl From<&QueueStateSer> for QueueState
source§fn from(state: &QueueStateSer) -> Self
fn from(state: &QueueStateSer) -> Self
Converts to this type from the input type.
source§impl PartialEq for QueueStateSer
impl PartialEq for QueueStateSer
source§fn eq(&self, other: &QueueStateSer) -> bool
fn eq(&self, other: &QueueStateSer) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for QueueStateSer
impl Serialize for QueueStateSer
source§impl Versionize for QueueStateSer
impl Versionize for QueueStateSer
source§fn serialize<W: Write>(
&self,
writer: &mut W,
version_map: &VersionMap,
app_version: u16
) -> VersionizeResult<()>
fn serialize<W: Write>( &self, writer: &mut W, version_map: &VersionMap, app_version: u16 ) -> VersionizeResult<()>
Serializes
self to target_verion using the specficifed writer and
version_map.source§fn deserialize<R: Read>(
reader: &mut R,
version_map: &VersionMap,
app_version: u16
) -> VersionizeResult<Self>
fn deserialize<R: Read>( reader: &mut R, version_map: &VersionMap, app_version: u16 ) -> VersionizeResult<Self>
Returns a new instance of
Self by deserializing from source_version
using the specficifed reader and version_map.impl Eq for QueueStateSer
impl StructuralEq for QueueStateSer
impl StructuralPartialEq for QueueStateSer
Auto Trait Implementations§
impl RefUnwindSafe for QueueStateSer
impl Send for QueueStateSer
impl Sync for QueueStateSer
impl Unpin for QueueStateSer
impl UnwindSafe for QueueStateSer
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