Enum qapi_qmp::BlockExportOptions
source · pub enum BlockExportOptions {
fuse {
base: BlockExportOptionsBase,
fuse: BlockExportOptionsFuse,
},
nbd {
base: BlockExportOptionsBase,
nbd: BlockExportOptionsNbd,
},
vduse_blk {
base: BlockExportOptionsBase,
vduse_blk: BlockExportOptionsVduseBlk,
},
vhost_user_blk {
base: BlockExportOptionsBase,
vhost_user_blk: BlockExportOptionsVhostUserBlk,
},
}
Variants§
Implementations§
source§impl BlockExportOptions
impl BlockExportOptions
pub fn type_(&self) -> BlockExportType
Trait Implementations§
source§impl Clone for BlockExportOptions
impl Clone for BlockExportOptions
source§fn clone(&self) -> BlockExportOptions
fn clone(&self) -> BlockExportOptions
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 BlockExportOptions
impl Debug for BlockExportOptions
source§impl<'de> Deserialize<'de> for BlockExportOptions
impl<'de> Deserialize<'de> for BlockExportOptions
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<(BlockExportOptionsFuse, BlockExportOptionsBase)> for BlockExportOptions
impl From<(BlockExportOptionsFuse, BlockExportOptionsBase)> for BlockExportOptions
source§fn from(val: (BlockExportOptionsFuse, BlockExportOptionsBase)) -> Self
fn from(val: (BlockExportOptionsFuse, BlockExportOptionsBase)) -> Self
Converts to this type from the input type.
source§impl From<(BlockExportOptionsNbd, BlockExportOptionsBase)> for BlockExportOptions
impl From<(BlockExportOptionsNbd, BlockExportOptionsBase)> for BlockExportOptions
source§fn from(val: (BlockExportOptionsNbd, BlockExportOptionsBase)) -> Self
fn from(val: (BlockExportOptionsNbd, BlockExportOptionsBase)) -> Self
Converts to this type from the input type.
source§impl From<(BlockExportOptionsVduseBlk, BlockExportOptionsBase)> for BlockExportOptions
impl From<(BlockExportOptionsVduseBlk, BlockExportOptionsBase)> for BlockExportOptions
source§fn from(val: (BlockExportOptionsVduseBlk, BlockExportOptionsBase)) -> Self
fn from(val: (BlockExportOptionsVduseBlk, BlockExportOptionsBase)) -> Self
Converts to this type from the input type.
source§impl From<(BlockExportOptionsVhostUserBlk, BlockExportOptionsBase)> for BlockExportOptions
impl From<(BlockExportOptionsVhostUserBlk, BlockExportOptionsBase)> for BlockExportOptions
source§fn from(val: (BlockExportOptionsVhostUserBlk, BlockExportOptionsBase)) -> Self
fn from(val: (BlockExportOptionsVhostUserBlk, BlockExportOptionsBase)) -> Self
Converts to this type from the input type.
source§impl From<BlockExportOptions> for block_export_add
impl From<BlockExportOptions> for block_export_add
source§fn from(val: BlockExportOptions) -> Self
fn from(val: BlockExportOptions) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BlockExportOptions
impl RefUnwindSafe for BlockExportOptions
impl Send for BlockExportOptions
impl Sync for BlockExportOptions
impl Unpin for BlockExportOptions
impl UnwindSafe for BlockExportOptions
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
)