Struct qapi_qmp::VirtioMEMDeviceInfo
source · pub struct VirtioMEMDeviceInfo {
pub id: Option<String>,
pub block_size: u64,
pub max_size: u64,
pub memaddr: u64,
pub memdev: String,
pub node: i64,
pub requested_size: u64,
pub size: u64,
}
Fields§
§id: Option<String>
§block_size: u64
§max_size: u64
§memaddr: u64
§memdev: String
§node: i64
§requested_size: u64
§size: u64
Trait Implementations§
source§impl AsRef<VirtioMEMDeviceInfo> for VirtioMEMDeviceInfoWrapper
impl AsRef<VirtioMEMDeviceInfo> for VirtioMEMDeviceInfoWrapper
source§fn as_ref(&self) -> &VirtioMEMDeviceInfo
fn as_ref(&self) -> &VirtioMEMDeviceInfo
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for VirtioMEMDeviceInfo
impl Clone for VirtioMEMDeviceInfo
source§fn clone(&self) -> VirtioMEMDeviceInfo
fn clone(&self) -> VirtioMEMDeviceInfo
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 VirtioMEMDeviceInfo
impl Debug for VirtioMEMDeviceInfo
source§impl<'de> Deserialize<'de> for VirtioMEMDeviceInfo
impl<'de> Deserialize<'de> for VirtioMEMDeviceInfo
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<VirtioMEMDeviceInfo> for MemoryDeviceInfo
impl From<VirtioMEMDeviceInfo> for MemoryDeviceInfo
source§fn from(val: VirtioMEMDeviceInfo) -> Self
fn from(val: VirtioMEMDeviceInfo) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for VirtioMEMDeviceInfo
impl RefUnwindSafe for VirtioMEMDeviceInfo
impl Send for VirtioMEMDeviceInfo
impl Sync for VirtioMEMDeviceInfo
impl Unpin for VirtioMEMDeviceInfo
impl UnwindSafe for VirtioMEMDeviceInfo
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)