pub struct Drive {
pub cache_type: Option<String>,
pub drive_id: String,
pub io_engine: Option<String>,
pub is_read_only: bool,
pub is_root_device: bool,
pub partuuid: Option<String>,
pub path_on_host: String,
pub rate_limiter: Option<RateLimiter>,
pub socket: Option<String>,
}
Expand description
Represents a block device in the guest VM. This can be either a regular file or a block device on the host that is exposed to the guest. Supports both read-only and read-write modes, and can be configured as the root device for the guest filesystem.
Fields§
§cache_type: Option<String>
Represents the caching strategy for the block device
drive_id: String
Unique identifier for the drive
io_engine: Option<String>
Type of IO engine
is_read_only: bool
Whether the block device is read-only
is_root_device: bool
Whether this is the root device
partuuid: Option<String>
Unique id of the boot partition (only used if is_root_device is true)
path_on_host: String
Host level path for the guest drive
rate_limiter: Option<RateLimiter>
Rate limiter for the drive
socket: Option<String>
Socket path for the drive
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
Source§impl<'v_a> ValidateArgs<'v_a> for Drive
impl<'v_a> ValidateArgs<'v_a> 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