pub struct Drive {
pub drive_id: String,
pub cache_type: Option<CacheType>,
pub is_read_only: bool,
pub is_root_device: bool,
pub partuuid: Option<String>,
pub path_on_host: String,
pub rate_limiter: Option<Box<RateLimiter>>,
pub io_engine: Option<IoEngine>,
}Fields§
§drive_id: String§cache_type: Option<CacheType>Represents the caching strategy for the block device.
is_read_only: bool§is_root_device: bool§partuuid: Option<String>Represents the unique id of the boot partition of this device. It is optional and it will be taken into account only if the is_root_device field is true.
path_on_host: StringHost level path for the guest drive
rate_limiter: Option<Box<RateLimiter>>§io_engine: Option<IoEngine>Type of the IO engine used by the device. "Async" is supported on host kernels newer than 5.10.51.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Drive
impl<'de> Deserialize<'de> for Drive
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
impl StructuralPartialEq for Drive
Auto Trait Implementations§
impl Freeze for Drive
impl RefUnwindSafe for Drive
impl Send for Drive
impl Sync for Drive
impl Unpin for Drive
impl UnwindSafe for Drive
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