Enum qapi_qmp::BlockdevOptions
source · [−]pub enum BlockdevOptions {
Show 42 variants
vpc {
base: BlockdevOptionsBase,
vpc: BlockdevOptionsGenericFormat,
},
dmg {
base: BlockdevOptionsBase,
dmg: BlockdevOptionsGenericFormat,
},
qcow2 {
base: BlockdevOptionsBase,
qcow2: BlockdevOptionsQcow2,
},
blklogwrites {
base: BlockdevOptionsBase,
blklogwrites: BlockdevOptionsBlklogwrites,
},
ftps {
base: BlockdevOptionsBase,
ftps: BlockdevOptionsCurlFtps,
},
iscsi {
base: BlockdevOptionsBase,
iscsi: BlockdevOptionsIscsi,
},
null_co {
base: BlockdevOptionsBase,
null_co: BlockdevOptionsNull,
},
blkreplay {
base: BlockdevOptionsBase,
blkreplay: BlockdevOptionsBlkreplay,
},
preallocate {
base: BlockdevOptionsBase,
preallocate: BlockdevOptionsPreallocate,
},
http {
base: BlockdevOptionsBase,
http: BlockdevOptionsCurlHttp,
},
throttle {
base: BlockdevOptionsBase,
throttle: BlockdevOptionsThrottle,
},
file {
base: BlockdevOptionsBase,
file: BlockdevOptionsFile,
},
nfs {
base: BlockdevOptionsBase,
nfs: BlockdevOptionsNfs,
},
blkdebug {
base: BlockdevOptionsBase,
blkdebug: BlockdevOptionsBlkdebug,
},
https {
base: BlockdevOptionsBase,
https: BlockdevOptionsCurlHttps,
},
rbd {
base: BlockdevOptionsBase,
rbd: BlockdevOptionsRbd,
},
ssh {
base: BlockdevOptionsBase,
ssh: BlockdevOptionsSsh,
},
vdi {
base: BlockdevOptionsBase,
vdi: BlockdevOptionsGenericFormat,
},
ftp {
base: BlockdevOptionsBase,
ftp: BlockdevOptionsCurlFtp,
},
bochs {
base: BlockdevOptionsBase,
bochs: BlockdevOptionsGenericFormat,
},
host_cdrom {
base: BlockdevOptionsBase,
host_cdrom: BlockdevOptionsFile,
},
gluster {
base: BlockdevOptionsBase,
gluster: BlockdevOptionsGluster,
},
vhdx {
base: BlockdevOptionsBase,
vhdx: BlockdevOptionsGenericFormat,
},
cloop {
base: BlockdevOptionsBase,
cloop: BlockdevOptionsGenericFormat,
},
null_aio {
base: BlockdevOptionsBase,
null_aio: BlockdevOptionsNull,
},
qcow {
base: BlockdevOptionsBase,
qcow: BlockdevOptionsQcow,
},
copy_before_write {
base: BlockdevOptionsBase,
copy_before_write: BlockdevOptionsCbw,
},
luks {
base: BlockdevOptionsBase,
luks: BlockdevOptionsLUKS,
},
quorum {
base: BlockdevOptionsBase,
quorum: BlockdevOptionsQuorum,
},
raw {
base: BlockdevOptionsBase,
raw: BlockdevOptionsRaw,
},
replication {
base: BlockdevOptionsBase,
replication: BlockdevOptionsReplication,
},
vvfat {
base: BlockdevOptionsBase,
vvfat: BlockdevOptionsVVFAT,
},
nbd {
base: BlockdevOptionsBase,
nbd: BlockdevOptionsNbd,
},
compress {
base: BlockdevOptionsBase,
compress: BlockdevOptionsGenericFormat,
},
copy_on_read {
base: BlockdevOptionsBase,
copy_on_read: BlockdevOptionsCor,
},
host_device {
base: BlockdevOptionsBase,
host_device: BlockdevOptionsFile,
},
snapshot_access {
base: BlockdevOptionsBase,
snapshot_access: BlockdevOptionsGenericFormat,
},
blkverify {
base: BlockdevOptionsBase,
blkverify: BlockdevOptionsBlkverify,
},
vmdk {
base: BlockdevOptionsBase,
vmdk: BlockdevOptionsGenericCOWFormat,
},
parallels {
base: BlockdevOptionsBase,
parallels: BlockdevOptionsGenericFormat,
},
nvme {
base: BlockdevOptionsBase,
nvme: BlockdevOptionsNVMe,
},
qed {
base: BlockdevOptionsBase,
qed: BlockdevOptionsGenericCOWFormat,
},
}Variants
vpc
dmg
qcow2
blklogwrites
ftps
iscsi
null_co
blkreplay
preallocate
http
throttle
file
nfs
blkdebug
https
rbd
ssh
vdi
ftp
bochs
host_cdrom
gluster
vhdx
cloop
null_aio
qcow
copy_before_write
luks
quorum
raw
replication
vvfat
nbd
compress
copy_on_read
host_device
snapshot_access
blkverify
vmdk
parallels
nvme
qed
Implementations
sourceimpl BlockdevOptions
impl BlockdevOptions
pub fn driver(&self) -> BlockdevDriver
Trait Implementations
sourceimpl Clone for BlockdevOptions
impl Clone for BlockdevOptions
sourcefn clone(&self) -> BlockdevOptions
fn clone(&self) -> BlockdevOptions
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 BlockdevOptions
impl Debug for BlockdevOptions
sourceimpl<'de> Deserialize<'de> for BlockdevOptions
impl<'de> Deserialize<'de> for BlockdevOptions
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 From<(BlockdevOptionsBlkdebug, BlockdevOptionsBase)> for BlockdevOptions
impl From<(BlockdevOptionsBlkdebug, BlockdevOptionsBase)> for BlockdevOptions
sourcefn from(val: (BlockdevOptionsBlkdebug, BlockdevOptionsBase)) -> Self
fn from(val: (BlockdevOptionsBlkdebug, BlockdevOptionsBase)) -> Self
Converts to this type from the input type.
sourceimpl From<(BlockdevOptionsBlklogwrites, BlockdevOptionsBase)> for BlockdevOptions
impl From<(BlockdevOptionsBlklogwrites, BlockdevOptionsBase)> for BlockdevOptions
sourcefn from(val: (BlockdevOptionsBlklogwrites, BlockdevOptionsBase)) -> Self
fn from(val: (BlockdevOptionsBlklogwrites, BlockdevOptionsBase)) -> Self
Converts to this type from the input type.
sourceimpl From<(BlockdevOptionsBlkreplay, BlockdevOptionsBase)> for BlockdevOptions
impl From<(BlockdevOptionsBlkreplay, BlockdevOptionsBase)> for BlockdevOptions
sourcefn from(val: (BlockdevOptionsBlkreplay, BlockdevOptionsBase)) -> Self
fn from(val: (BlockdevOptionsBlkreplay, BlockdevOptionsBase)) -> Self
Converts to this type from the input type.
sourceimpl From<(BlockdevOptionsBlkverify, BlockdevOptionsBase)> for BlockdevOptions
impl From<(BlockdevOptionsBlkverify, BlockdevOptionsBase)> for BlockdevOptions
sourcefn from(val: (BlockdevOptionsBlkverify, BlockdevOptionsBase)) -> Self
fn from(val: (BlockdevOptionsBlkverify, BlockdevOptionsBase)) -> Self
Converts to this type from the input type.
sourceimpl From<(BlockdevOptionsCbw, BlockdevOptionsBase)> for BlockdevOptions
impl From<(BlockdevOptionsCbw, BlockdevOptionsBase)> for BlockdevOptions
sourcefn from(val: (BlockdevOptionsCbw, BlockdevOptionsBase)) -> Self
fn from(val: (BlockdevOptionsCbw, BlockdevOptionsBase)) -> Self
Converts to this type from the input type.
sourceimpl From<(BlockdevOptionsCor, BlockdevOptionsBase)> for BlockdevOptions
impl From<(BlockdevOptionsCor, BlockdevOptionsBase)> for BlockdevOptions
sourcefn from(val: (BlockdevOptionsCor, BlockdevOptionsBase)) -> Self
fn from(val: (BlockdevOptionsCor, BlockdevOptionsBase)) -> Self
Converts to this type from the input type.
sourceimpl From<(BlockdevOptionsCurlFtp, BlockdevOptionsBase)> for BlockdevOptions
impl From<(BlockdevOptionsCurlFtp, BlockdevOptionsBase)> for BlockdevOptions
sourcefn from(val: (BlockdevOptionsCurlFtp, BlockdevOptionsBase)) -> Self
fn from(val: (BlockdevOptionsCurlFtp, BlockdevOptionsBase)) -> Self
Converts to this type from the input type.
sourceimpl From<(BlockdevOptionsCurlFtps, BlockdevOptionsBase)> for BlockdevOptions
impl From<(BlockdevOptionsCurlFtps, BlockdevOptionsBase)> for BlockdevOptions
sourcefn from(val: (BlockdevOptionsCurlFtps, BlockdevOptionsBase)) -> Self
fn from(val: (BlockdevOptionsCurlFtps, BlockdevOptionsBase)) -> Self
Converts to this type from the input type.
sourceimpl From<(BlockdevOptionsCurlHttp, BlockdevOptionsBase)> for BlockdevOptions
impl From<(BlockdevOptionsCurlHttp, BlockdevOptionsBase)> for BlockdevOptions
sourcefn from(val: (BlockdevOptionsCurlHttp, BlockdevOptionsBase)) -> Self
fn from(val: (BlockdevOptionsCurlHttp, BlockdevOptionsBase)) -> Self
Converts to this type from the input type.
sourceimpl From<(BlockdevOptionsCurlHttps, BlockdevOptionsBase)> for BlockdevOptions
impl From<(BlockdevOptionsCurlHttps, BlockdevOptionsBase)> for BlockdevOptions
sourcefn from(val: (BlockdevOptionsCurlHttps, BlockdevOptionsBase)) -> Self
fn from(val: (BlockdevOptionsCurlHttps, BlockdevOptionsBase)) -> Self
Converts to this type from the input type.
sourceimpl From<(BlockdevOptionsGluster, BlockdevOptionsBase)> for BlockdevOptions
impl From<(BlockdevOptionsGluster, BlockdevOptionsBase)> for BlockdevOptions
sourcefn from(val: (BlockdevOptionsGluster, BlockdevOptionsBase)) -> Self
fn from(val: (BlockdevOptionsGluster, BlockdevOptionsBase)) -> Self
Converts to this type from the input type.
sourceimpl From<(BlockdevOptionsIscsi, BlockdevOptionsBase)> for BlockdevOptions
impl From<(BlockdevOptionsIscsi, BlockdevOptionsBase)> for BlockdevOptions
sourcefn from(val: (BlockdevOptionsIscsi, BlockdevOptionsBase)) -> Self
fn from(val: (BlockdevOptionsIscsi, BlockdevOptionsBase)) -> Self
Converts to this type from the input type.
sourceimpl From<(BlockdevOptionsLUKS, BlockdevOptionsBase)> for BlockdevOptions
impl From<(BlockdevOptionsLUKS, BlockdevOptionsBase)> for BlockdevOptions
sourcefn from(val: (BlockdevOptionsLUKS, BlockdevOptionsBase)) -> Self
fn from(val: (BlockdevOptionsLUKS, BlockdevOptionsBase)) -> Self
Converts to this type from the input type.
sourceimpl From<(BlockdevOptionsNVMe, BlockdevOptionsBase)> for BlockdevOptions
impl From<(BlockdevOptionsNVMe, BlockdevOptionsBase)> for BlockdevOptions
sourcefn from(val: (BlockdevOptionsNVMe, BlockdevOptionsBase)) -> Self
fn from(val: (BlockdevOptionsNVMe, BlockdevOptionsBase)) -> Self
Converts to this type from the input type.
sourceimpl From<(BlockdevOptionsNbd, BlockdevOptionsBase)> for BlockdevOptions
impl From<(BlockdevOptionsNbd, BlockdevOptionsBase)> for BlockdevOptions
sourcefn from(val: (BlockdevOptionsNbd, BlockdevOptionsBase)) -> Self
fn from(val: (BlockdevOptionsNbd, BlockdevOptionsBase)) -> Self
Converts to this type from the input type.
sourceimpl From<(BlockdevOptionsNfs, BlockdevOptionsBase)> for BlockdevOptions
impl From<(BlockdevOptionsNfs, BlockdevOptionsBase)> for BlockdevOptions
sourcefn from(val: (BlockdevOptionsNfs, BlockdevOptionsBase)) -> Self
fn from(val: (BlockdevOptionsNfs, BlockdevOptionsBase)) -> Self
Converts to this type from the input type.
sourceimpl From<(BlockdevOptionsPreallocate, BlockdevOptionsBase)> for BlockdevOptions
impl From<(BlockdevOptionsPreallocate, BlockdevOptionsBase)> for BlockdevOptions
sourcefn from(val: (BlockdevOptionsPreallocate, BlockdevOptionsBase)) -> Self
fn from(val: (BlockdevOptionsPreallocate, BlockdevOptionsBase)) -> Self
Converts to this type from the input type.
sourceimpl From<(BlockdevOptionsQcow, BlockdevOptionsBase)> for BlockdevOptions
impl From<(BlockdevOptionsQcow, BlockdevOptionsBase)> for BlockdevOptions
sourcefn from(val: (BlockdevOptionsQcow, BlockdevOptionsBase)) -> Self
fn from(val: (BlockdevOptionsQcow, BlockdevOptionsBase)) -> Self
Converts to this type from the input type.
sourceimpl From<(BlockdevOptionsQcow2, BlockdevOptionsBase)> for BlockdevOptions
impl From<(BlockdevOptionsQcow2, BlockdevOptionsBase)> for BlockdevOptions
sourcefn from(val: (BlockdevOptionsQcow2, BlockdevOptionsBase)) -> Self
fn from(val: (BlockdevOptionsQcow2, BlockdevOptionsBase)) -> Self
Converts to this type from the input type.
sourceimpl From<(BlockdevOptionsQuorum, BlockdevOptionsBase)> for BlockdevOptions
impl From<(BlockdevOptionsQuorum, BlockdevOptionsBase)> for BlockdevOptions
sourcefn from(val: (BlockdevOptionsQuorum, BlockdevOptionsBase)) -> Self
fn from(val: (BlockdevOptionsQuorum, BlockdevOptionsBase)) -> Self
Converts to this type from the input type.
sourceimpl From<(BlockdevOptionsRaw, BlockdevOptionsBase)> for BlockdevOptions
impl From<(BlockdevOptionsRaw, BlockdevOptionsBase)> for BlockdevOptions
sourcefn from(val: (BlockdevOptionsRaw, BlockdevOptionsBase)) -> Self
fn from(val: (BlockdevOptionsRaw, BlockdevOptionsBase)) -> Self
Converts to this type from the input type.
sourceimpl From<(BlockdevOptionsRbd, BlockdevOptionsBase)> for BlockdevOptions
impl From<(BlockdevOptionsRbd, BlockdevOptionsBase)> for BlockdevOptions
sourcefn from(val: (BlockdevOptionsRbd, BlockdevOptionsBase)) -> Self
fn from(val: (BlockdevOptionsRbd, BlockdevOptionsBase)) -> Self
Converts to this type from the input type.
sourceimpl From<(BlockdevOptionsReplication, BlockdevOptionsBase)> for BlockdevOptions
impl From<(BlockdevOptionsReplication, BlockdevOptionsBase)> for BlockdevOptions
sourcefn from(val: (BlockdevOptionsReplication, BlockdevOptionsBase)) -> Self
fn from(val: (BlockdevOptionsReplication, BlockdevOptionsBase)) -> Self
Converts to this type from the input type.
sourceimpl From<(BlockdevOptionsSsh, BlockdevOptionsBase)> for BlockdevOptions
impl From<(BlockdevOptionsSsh, BlockdevOptionsBase)> for BlockdevOptions
sourcefn from(val: (BlockdevOptionsSsh, BlockdevOptionsBase)) -> Self
fn from(val: (BlockdevOptionsSsh, BlockdevOptionsBase)) -> Self
Converts to this type from the input type.
sourceimpl From<(BlockdevOptionsThrottle, BlockdevOptionsBase)> for BlockdevOptions
impl From<(BlockdevOptionsThrottle, BlockdevOptionsBase)> for BlockdevOptions
sourcefn from(val: (BlockdevOptionsThrottle, BlockdevOptionsBase)) -> Self
fn from(val: (BlockdevOptionsThrottle, BlockdevOptionsBase)) -> Self
Converts to this type from the input type.
sourceimpl From<(BlockdevOptionsVVFAT, BlockdevOptionsBase)> for BlockdevOptions
impl From<(BlockdevOptionsVVFAT, BlockdevOptionsBase)> for BlockdevOptions
sourcefn from(val: (BlockdevOptionsVVFAT, BlockdevOptionsBase)) -> Self
fn from(val: (BlockdevOptionsVVFAT, BlockdevOptionsBase)) -> Self
Converts to this type from the input type.
sourceimpl From<BlockdevOptions> for blockdev_add
impl From<BlockdevOptions> for blockdev_add
sourcefn from(val: BlockdevOptions) -> Self
fn from(val: BlockdevOptions) -> Self
Converts to this type from the input type.
sourceimpl Serialize for BlockdevOptions
impl Serialize for BlockdevOptions
Auto Trait Implementations
impl RefUnwindSafe for BlockdevOptions
impl Send for BlockdevOptions
impl Sync for BlockdevOptions
impl Unpin for BlockdevOptions
impl UnwindSafe for BlockdevOptions
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)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more