Struct qapi_qmp::MemoryBackendProperties
source · pub struct MemoryBackendProperties {
pub dump: Option<bool>,
pub host_nodes: Option<Vec<u16>>,
pub merge: Option<bool>,
pub policy: Option<HostMemPolicy>,
pub prealloc: Option<bool>,
pub prealloc_context: Option<String>,
pub prealloc_threads: Option<u32>,
pub reserve: Option<bool>,
pub share: Option<bool>,
pub x_use_canonical_path_for_ramblock_id: Option<bool>,
pub size: u64,
}
Fields§
§dump: Option<bool>
§host_nodes: Option<Vec<u16>>
§merge: Option<bool>
§policy: Option<HostMemPolicy>
§prealloc: Option<bool>
§prealloc_context: Option<String>
§prealloc_threads: Option<u32>
§reserve: Option<bool>
§x_use_canonical_path_for_ramblock_id: Option<bool>
§size: u64
Trait Implementations§
source§impl AsRef<MemoryBackendProperties> for MemoryBackendEpcProperties
impl AsRef<MemoryBackendProperties> for MemoryBackendEpcProperties
source§fn as_ref(&self) -> &MemoryBackendProperties
fn as_ref(&self) -> &MemoryBackendProperties
Converts this type into a shared reference of the (usually inferred) input type.
source§impl AsRef<MemoryBackendProperties> for MemoryBackendMemfdProperties
impl AsRef<MemoryBackendProperties> for MemoryBackendMemfdProperties
source§fn as_ref(&self) -> &MemoryBackendProperties
fn as_ref(&self) -> &MemoryBackendProperties
Converts this type into a shared reference of the (usually inferred) input type.
source§impl AsRef<MemoryBackendProperties> for MemoryBackendShmProperties
impl AsRef<MemoryBackendProperties> for MemoryBackendShmProperties
source§fn as_ref(&self) -> &MemoryBackendProperties
fn as_ref(&self) -> &MemoryBackendProperties
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for MemoryBackendProperties
impl Clone for MemoryBackendProperties
source§fn clone(&self) -> MemoryBackendProperties
fn clone(&self) -> MemoryBackendProperties
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 MemoryBackendProperties
impl Debug for MemoryBackendProperties
source§impl<'de> Deserialize<'de> for MemoryBackendProperties
impl<'de> Deserialize<'de> for MemoryBackendProperties
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
Auto Trait Implementations§
impl Freeze for MemoryBackendProperties
impl RefUnwindSafe for MemoryBackendProperties
impl Send for MemoryBackendProperties
impl Sync for MemoryBackendProperties
impl Unpin for MemoryBackendProperties
impl UnwindSafe for MemoryBackendProperties
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
)