Enum qapi_qmp::BlockdevOptions

source ·
pub enum BlockdevOptions {
Show 47 variants blkdebug { base: BlockdevOptionsBase, blkdebug: BlockdevOptionsBlkdebug, }, blklogwrites { base: BlockdevOptionsBase, blklogwrites: BlockdevOptionsBlklogwrites, }, blkreplay { base: BlockdevOptionsBase, blkreplay: BlockdevOptionsBlkreplay, }, blkverify { base: BlockdevOptionsBase, blkverify: BlockdevOptionsBlkverify, }, bochs { base: BlockdevOptionsBase, bochs: BlockdevOptionsGenericFormat, }, cloop { base: BlockdevOptionsBase, cloop: BlockdevOptionsGenericFormat, }, compress { base: BlockdevOptionsBase, compress: BlockdevOptionsGenericFormat, }, copy_before_write { base: BlockdevOptionsBase, copy_before_write: BlockdevOptionsCbw, }, copy_on_read { base: BlockdevOptionsBase, copy_on_read: BlockdevOptionsCor, }, dmg { base: BlockdevOptionsBase, dmg: BlockdevOptionsGenericFormat, }, file { base: BlockdevOptionsBase, file: BlockdevOptionsFile, }, ftp { base: BlockdevOptionsBase, ftp: BlockdevOptionsCurlFtp, }, ftps { base: BlockdevOptionsBase, ftps: BlockdevOptionsCurlFtps, }, gluster { base: BlockdevOptionsBase, gluster: BlockdevOptionsGluster, }, host_cdrom { base: BlockdevOptionsBase, host_cdrom: BlockdevOptionsFile, }, host_device { base: BlockdevOptionsBase, host_device: BlockdevOptionsFile, }, http { base: BlockdevOptionsBase, http: BlockdevOptionsCurlHttp, }, https { base: BlockdevOptionsBase, https: BlockdevOptionsCurlHttps, }, io_uring { base: BlockdevOptionsBase, io_uring: BlockdevOptionsIoUring, }, iscsi { base: BlockdevOptionsBase, iscsi: BlockdevOptionsIscsi, }, luks { base: BlockdevOptionsBase, luks: BlockdevOptionsLUKS, }, nbd { base: BlockdevOptionsBase, nbd: BlockdevOptionsNbd, }, nfs { base: BlockdevOptionsBase, nfs: BlockdevOptionsNfs, }, null_aio { base: BlockdevOptionsBase, null_aio: BlockdevOptionsNull, }, null_co { base: BlockdevOptionsBase, null_co: BlockdevOptionsNull, }, nvme { base: BlockdevOptionsBase, nvme: BlockdevOptionsNVMe, }, nvme_io_uring { base: BlockdevOptionsBase, nvme_io_uring: BlockdevOptionsNvmeIoUring, }, parallels { base: BlockdevOptionsBase, parallels: BlockdevOptionsGenericFormat, }, preallocate { base: BlockdevOptionsBase, preallocate: BlockdevOptionsPreallocate, }, qcow { base: BlockdevOptionsBase, qcow: BlockdevOptionsQcow, }, qcow2 { base: BlockdevOptionsBase, qcow2: BlockdevOptionsQcow2, }, qed { base: BlockdevOptionsBase, qed: BlockdevOptionsGenericCOWFormat, }, quorum { base: BlockdevOptionsBase, quorum: BlockdevOptionsQuorum, }, raw { base: BlockdevOptionsBase, raw: BlockdevOptionsRaw, }, rbd { base: BlockdevOptionsBase, rbd: BlockdevOptionsRbd, }, replication { base: BlockdevOptionsBase, replication: BlockdevOptionsReplication, }, snapshot_access { base: BlockdevOptionsBase, snapshot_access: BlockdevOptionsGenericFormat, }, ssh { base: BlockdevOptionsBase, ssh: BlockdevOptionsSsh, }, throttle { base: BlockdevOptionsBase, throttle: BlockdevOptionsThrottle, }, vdi { base: BlockdevOptionsBase, vdi: BlockdevOptionsGenericFormat, }, vhdx { base: BlockdevOptionsBase, vhdx: BlockdevOptionsGenericFormat, }, virtio_blk_vfio_pci { base: BlockdevOptionsBase, virtio_blk_vfio_pci: BlockdevOptionsVirtioBlkVfioPci, }, virtio_blk_vhost_user { base: BlockdevOptionsBase, virtio_blk_vhost_user: BlockdevOptionsVirtioBlkVhostUser, }, virtio_blk_vhost_vdpa { base: BlockdevOptionsBase, virtio_blk_vhost_vdpa: BlockdevOptionsVirtioBlkVhostVdpa, }, vmdk { base: BlockdevOptionsBase, vmdk: BlockdevOptionsGenericCOWFormat, }, vpc { base: BlockdevOptionsBase, vpc: BlockdevOptionsGenericFormat, }, vvfat { base: BlockdevOptionsBase, vvfat: BlockdevOptionsVVFAT, },
}

Variants§

§

blkdebug

§

blklogwrites

§

blkreplay

§

blkverify

§

bochs

§

cloop

§

compress

§

copy_before_write

Fields

§copy_before_write: BlockdevOptionsCbw
§

copy_on_read

§

dmg

§

file

§

ftp

§

ftps

§

gluster

§

host_cdrom

§

host_device

§

http

§

https

§

io_uring

§

iscsi

§

luks

§

nbd

§

nfs

§

null_aio

§

null_co

§

nvme

§

nvme_io_uring

§

parallels

§

preallocate

§

qcow

§

qcow2

§

qed

§

quorum

§

raw

§

rbd

§

replication

§

snapshot_access

§

ssh

§

throttle

§

vdi

§

vhdx

§

virtio_blk_vfio_pci

§

virtio_blk_vhost_user

§

virtio_blk_vhost_vdpa

§

vmdk

§

vpc

§

vvfat

Implementations§

Trait Implementations§

source§

impl Clone for BlockdevOptions

source§

fn clone(&self) -> BlockdevOptions

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for BlockdevOptions

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for BlockdevOptions

source§

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<(BlockdevOptionsBlkdebug, BlockdevOptionsBase)> for BlockdevOptions

source§

fn from(val: (BlockdevOptionsBlkdebug, BlockdevOptionsBase)) -> Self

Converts to this type from the input type.
source§

impl From<(BlockdevOptionsBlklogwrites, BlockdevOptionsBase)> for BlockdevOptions

source§

fn from(val: (BlockdevOptionsBlklogwrites, BlockdevOptionsBase)) -> Self

Converts to this type from the input type.
source§

impl From<(BlockdevOptionsBlkreplay, BlockdevOptionsBase)> for BlockdevOptions

source§

fn from(val: (BlockdevOptionsBlkreplay, BlockdevOptionsBase)) -> Self

Converts to this type from the input type.
source§

impl From<(BlockdevOptionsBlkverify, BlockdevOptionsBase)> for BlockdevOptions

source§

fn from(val: (BlockdevOptionsBlkverify, BlockdevOptionsBase)) -> Self

Converts to this type from the input type.
source§

impl From<(BlockdevOptionsCbw, BlockdevOptionsBase)> for BlockdevOptions

source§

fn from(val: (BlockdevOptionsCbw, BlockdevOptionsBase)) -> Self

Converts to this type from the input type.
source§

impl From<(BlockdevOptionsCor, BlockdevOptionsBase)> for BlockdevOptions

source§

fn from(val: (BlockdevOptionsCor, BlockdevOptionsBase)) -> Self

Converts to this type from the input type.
source§

impl From<(BlockdevOptionsCurlFtp, BlockdevOptionsBase)> for BlockdevOptions

source§

fn from(val: (BlockdevOptionsCurlFtp, BlockdevOptionsBase)) -> Self

Converts to this type from the input type.
source§

impl From<(BlockdevOptionsCurlFtps, BlockdevOptionsBase)> for BlockdevOptions

source§

fn from(val: (BlockdevOptionsCurlFtps, BlockdevOptionsBase)) -> Self

Converts to this type from the input type.
source§

impl From<(BlockdevOptionsCurlHttp, BlockdevOptionsBase)> for BlockdevOptions

source§

fn from(val: (BlockdevOptionsCurlHttp, BlockdevOptionsBase)) -> Self

Converts to this type from the input type.
source§

impl From<(BlockdevOptionsCurlHttps, BlockdevOptionsBase)> for BlockdevOptions

source§

fn from(val: (BlockdevOptionsCurlHttps, BlockdevOptionsBase)) -> Self

Converts to this type from the input type.
source§

impl From<(BlockdevOptionsGluster, BlockdevOptionsBase)> for BlockdevOptions

source§

fn from(val: (BlockdevOptionsGluster, BlockdevOptionsBase)) -> Self

Converts to this type from the input type.
source§

impl From<(BlockdevOptionsIoUring, BlockdevOptionsBase)> for BlockdevOptions

source§

fn from(val: (BlockdevOptionsIoUring, BlockdevOptionsBase)) -> Self

Converts to this type from the input type.
source§

impl From<(BlockdevOptionsIscsi, BlockdevOptionsBase)> for BlockdevOptions

source§

fn from(val: (BlockdevOptionsIscsi, BlockdevOptionsBase)) -> Self

Converts to this type from the input type.
source§

impl From<(BlockdevOptionsLUKS, BlockdevOptionsBase)> for BlockdevOptions

source§

fn from(val: (BlockdevOptionsLUKS, BlockdevOptionsBase)) -> Self

Converts to this type from the input type.
source§

impl From<(BlockdevOptionsNVMe, BlockdevOptionsBase)> for BlockdevOptions

source§

fn from(val: (BlockdevOptionsNVMe, BlockdevOptionsBase)) -> Self

Converts to this type from the input type.
source§

impl From<(BlockdevOptionsNbd, BlockdevOptionsBase)> for BlockdevOptions

source§

fn from(val: (BlockdevOptionsNbd, BlockdevOptionsBase)) -> Self

Converts to this type from the input type.
source§

impl From<(BlockdevOptionsNfs, BlockdevOptionsBase)> for BlockdevOptions

source§

fn from(val: (BlockdevOptionsNfs, BlockdevOptionsBase)) -> Self

Converts to this type from the input type.
source§

impl From<(BlockdevOptionsNvmeIoUring, BlockdevOptionsBase)> for BlockdevOptions

source§

fn from(val: (BlockdevOptionsNvmeIoUring, BlockdevOptionsBase)) -> Self

Converts to this type from the input type.
source§

impl From<(BlockdevOptionsPreallocate, BlockdevOptionsBase)> for BlockdevOptions

source§

fn from(val: (BlockdevOptionsPreallocate, BlockdevOptionsBase)) -> Self

Converts to this type from the input type.
source§

impl From<(BlockdevOptionsQcow, BlockdevOptionsBase)> for BlockdevOptions

source§

fn from(val: (BlockdevOptionsQcow, BlockdevOptionsBase)) -> Self

Converts to this type from the input type.
source§

impl From<(BlockdevOptionsQcow2, BlockdevOptionsBase)> for BlockdevOptions

source§

fn from(val: (BlockdevOptionsQcow2, BlockdevOptionsBase)) -> Self

Converts to this type from the input type.
source§

impl From<(BlockdevOptionsQuorum, BlockdevOptionsBase)> for BlockdevOptions

source§

fn from(val: (BlockdevOptionsQuorum, BlockdevOptionsBase)) -> Self

Converts to this type from the input type.
source§

impl From<(BlockdevOptionsRaw, BlockdevOptionsBase)> for BlockdevOptions

source§

fn from(val: (BlockdevOptionsRaw, BlockdevOptionsBase)) -> Self

Converts to this type from the input type.
source§

impl From<(BlockdevOptionsRbd, BlockdevOptionsBase)> for BlockdevOptions

source§

fn from(val: (BlockdevOptionsRbd, BlockdevOptionsBase)) -> Self

Converts to this type from the input type.
source§

impl From<(BlockdevOptionsReplication, BlockdevOptionsBase)> for BlockdevOptions

source§

fn from(val: (BlockdevOptionsReplication, BlockdevOptionsBase)) -> Self

Converts to this type from the input type.
source§

impl From<(BlockdevOptionsSsh, BlockdevOptionsBase)> for BlockdevOptions

source§

fn from(val: (BlockdevOptionsSsh, BlockdevOptionsBase)) -> Self

Converts to this type from the input type.
source§

impl From<(BlockdevOptionsThrottle, BlockdevOptionsBase)> for BlockdevOptions

source§

fn from(val: (BlockdevOptionsThrottle, BlockdevOptionsBase)) -> Self

Converts to this type from the input type.
source§

impl From<(BlockdevOptionsVVFAT, BlockdevOptionsBase)> for BlockdevOptions

source§

fn from(val: (BlockdevOptionsVVFAT, BlockdevOptionsBase)) -> Self

Converts to this type from the input type.
source§

impl From<(BlockdevOptionsVirtioBlkVfioPci, BlockdevOptionsBase)> for BlockdevOptions

source§

fn from(val: (BlockdevOptionsVirtioBlkVfioPci, BlockdevOptionsBase)) -> Self

Converts to this type from the input type.
source§

impl From<(BlockdevOptionsVirtioBlkVhostUser, BlockdevOptionsBase)> for BlockdevOptions

source§

fn from(val: (BlockdevOptionsVirtioBlkVhostUser, BlockdevOptionsBase)) -> Self

Converts to this type from the input type.
source§

impl From<(BlockdevOptionsVirtioBlkVhostVdpa, BlockdevOptionsBase)> for BlockdevOptions

source§

fn from(val: (BlockdevOptionsVirtioBlkVhostVdpa, BlockdevOptionsBase)) -> Self

Converts to this type from the input type.
source§

impl From<BlockdevOptions> for blockdev_add

source§

fn from(val: BlockdevOptions) -> Self

Converts to this type from the input type.
source§

impl Serialize for BlockdevOptions

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,