#[non_exhaustive]pub struct DriveConfig {
pub drive_id: DriveId,
pub path_on_host: SafePath,
pub is_root_device: bool,
pub is_read_only: bool,
pub cache_type: CacheType,
pub io_engine: IoEngine,
pub partuuid: Option<String>,
pub rate_limiter: Option<Value>,
pub vhost_user_socket: Option<String>,
}Expand description
Validated /drives/{id} PUT body.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.drive_id: DriveIdValidated identifier.
path_on_host: SafePathValidated host path.
is_root_device: boolis_root_device is honored exactly once per VM; the controller enforces uniqueness.
is_read_only: boolis_read_only.
cache_type: CacheTypeCaching policy.
io_engine: IoEngineIO engine.
partuuid: Option<String>Validated root partition UUID, if present.
rate_limiter: Option<Value>Rate limiter passthrough (validated structurally by the device layer).
vhost_user_socket: Option<String>Whether a vhost-user socket was supplied (accept-and-warn marker).
Trait Implementations§
Source§impl Clone for DriveConfig
impl Clone for DriveConfig
Source§fn clone(&self) -> DriveConfig
fn clone(&self) -> DriveConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DriveConfig
impl Debug for DriveConfig
Source§impl Serialize for DriveConfig
impl Serialize for DriveConfig
Source§impl TryFrom<RawDriveConfig> for DriveConfig
impl TryFrom<RawDriveConfig> for DriveConfig
Auto Trait Implementations§
impl Freeze for DriveConfig
impl RefUnwindSafe for DriveConfig
impl Send for DriveConfig
impl Sync for DriveConfig
impl Unpin for DriveConfig
impl UnsafeUnpin for DriveConfig
impl UnwindSafe for DriveConfig
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