pub struct FirecrackerConfig {
pub firecracker_bin: PathBuf,
pub kernel_path: PathBuf,
pub rootfs_path: PathBuf,
pub vcpu_count: u8,
pub mem_size_mib: u32,
pub timeout: Duration,
pub workspace: PathBuf,
}Expand description
Configuration for Firecracker sandbox.
Fields§
§firecracker_bin: PathBufPath to firecracker binary
kernel_path: PathBufPath to kernel image (vmlinux)
rootfs_path: PathBufPath to root filesystem (ext4)
vcpu_count: u8Number of vCPUs
mem_size_mib: u32Memory size in MiB
timeout: DurationExecution timeout
workspace: PathBufWorkspace directory for VM files
Implementations§
Trait Implementations§
Source§impl Clone for FirecrackerConfig
impl Clone for FirecrackerConfig
Source§fn clone(&self) -> FirecrackerConfig
fn clone(&self) -> FirecrackerConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 FirecrackerConfig
impl Debug for FirecrackerConfig
Auto Trait Implementations§
impl Freeze for FirecrackerConfig
impl RefUnwindSafe for FirecrackerConfig
impl Send for FirecrackerConfig
impl Sync for FirecrackerConfig
impl Unpin for FirecrackerConfig
impl UnsafeUnpin for FirecrackerConfig
impl UnwindSafe for FirecrackerConfig
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