pub struct DriveSpec {
pub drive_id: String,
pub path_on_host: PathBuf,
pub is_read_only: bool,
pub rate_limiter: Option<RateLimiter>,
}Expand description
Additional drive beyond the rootfs.
Fields§
§drive_id: StringIdentifier used by Firecracker for this drive (must be unique per VM).
path_on_host: PathBufPath on host to the backing file (ext4 image, or any block file).
is_read_only: boolMount as read-only in guest.
rate_limiter: Option<RateLimiter>Optional bandwidth + ops rate limit.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DriveSpec
impl RefUnwindSafe for DriveSpec
impl Send for DriveSpec
impl Sync for DriveSpec
impl Unpin for DriveSpec
impl UnsafeUnpin for DriveSpec
impl UnwindSafe for DriveSpec
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