Struct qapi_qmp::BlockdevOptionsQcow2
source · [−]pub struct BlockdevOptionsQcow2 {Show 13 fields
pub base: BlockdevOptionsGenericCOWFormat,
pub l2_cache_entry_size: Option<i32>,
pub cache_clean_interval: Option<i32>,
pub refcount_cache_size: Option<i32>,
pub pass_discard_request: Option<bool>,
pub pass_discard_other: Option<bool>,
pub data_file: Option<BlockdevRef>,
pub encrypt: Option<BlockdevQcow2Encryption>,
pub pass_discard_snapshot: Option<bool>,
pub overlap_check: Option<Qcow2OverlapChecks>,
pub lazy_refcounts: Option<bool>,
pub l2_cache_size: Option<i32>,
pub cache_size: Option<i32>,
}Fields
base: BlockdevOptionsGenericCOWFormatl2_cache_entry_size: Option<i32>cache_clean_interval: Option<i32>refcount_cache_size: Option<i32>pass_discard_request: Option<bool>pass_discard_other: Option<bool>data_file: Option<BlockdevRef>encrypt: Option<BlockdevQcow2Encryption>pass_discard_snapshot: Option<bool>overlap_check: Option<Qcow2OverlapChecks>lazy_refcounts: Option<bool>l2_cache_size: Option<i32>cache_size: Option<i32>Trait Implementations
sourceimpl AsRef<BlockdevOptionsGenericCOWFormat> for BlockdevOptionsQcow2
impl AsRef<BlockdevOptionsGenericCOWFormat> for BlockdevOptionsQcow2
sourcefn as_ref(&self) -> &BlockdevOptionsGenericCOWFormat
fn as_ref(&self) -> &BlockdevOptionsGenericCOWFormat
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Clone for BlockdevOptionsQcow2
impl Clone for BlockdevOptionsQcow2
sourcefn clone(&self) -> BlockdevOptionsQcow2
fn clone(&self) -> BlockdevOptionsQcow2
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for BlockdevOptionsQcow2
impl Debug for BlockdevOptionsQcow2
sourceimpl<'de> Deserialize<'de> for BlockdevOptionsQcow2
impl<'de> Deserialize<'de> for BlockdevOptionsQcow2
sourcefn 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
sourceimpl<T: Into<BlockdevOptionsGenericCOWFormat>> From<T> for BlockdevOptionsQcow2
impl<T: Into<BlockdevOptionsGenericCOWFormat>> From<T> for BlockdevOptionsQcow2
sourceimpl Serialize for BlockdevOptionsQcow2
impl Serialize for BlockdevOptionsQcow2
Auto Trait Implementations
impl RefUnwindSafe for BlockdevOptionsQcow2
impl Send for BlockdevOptionsQcow2
impl Sync for BlockdevOptionsQcow2
impl Unpin for BlockdevOptionsQcow2
impl UnwindSafe for BlockdevOptionsQcow2
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more