pub struct KvmConfig {
pub base_image_path: PathBuf,
pub base_image_url: String,
pub vm_root: PathBuf,
}Expand description
Per-instance configuration for the KVM backend. Provider operators tweak these at startup.
Fields§
§base_image_path: PathBufPath to the read-only base cloud image. The backend creates per-VM qcow2 overlays on top, so multiple workloads share one physical base. Downloaded on first spawn if absent.
base_image_url: StringURL the backend fetches the base image from when
base_image_path is missing. Defaults to the Ubuntu cloud
image.
vm_root: PathBufWhere per-VM directories live.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for KvmConfig
impl RefUnwindSafe for KvmConfig
impl Send for KvmConfig
impl Sync for KvmConfig
impl Unpin for KvmConfig
impl UnsafeUnpin for KvmConfig
impl UnwindSafe for KvmConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more