pub enum Hypervisor {
Vfkit,
VfkitDarwin,
Qemu,
Kasou,
Libkrun,
}Variants§
Vfkit
Apple Virtualization.framework via the vfkit CLI — Linux guests.
Default on Darwin.
VfkitDarwin
Apple Virtualization.framework for Darwin guests (Apple Silicon
hosts only). Needs a Darwin IPSW; bootable via tart or Apple’s own
macosvm tool.
Qemu
Portable fallback. KVM on Linux, HVF on Darwin/Intel.
Kasou
pleme-io’s Rust-native Virtualization.framework wrapper — drives the VM in-process, no CLI shell-out.
Libkrun
pleme-io’s Rust-native libkrun (Hypervisor.framework) wrapper — the
lowest blessed macOS VM interface, driven in-process via tateru, no
CLI shell-out. The default máquina engine (see theory/MAQUINA.md).
Implementations§
Source§impl Hypervisor
impl Hypervisor
Sourcepub const fn discriminant(&self) -> &'static str
pub const fn discriminant(&self) -> &'static str
Stable variant discriminant — auto-generated by
#[derive(Discriminant)]. The string IS the wire
identifier for metrics labels / audit-log tags /
rate-limit keys; renaming an existing variant is a
breaking change.
Trait Implementations§
Source§impl Clone for Hypervisor
impl Clone for Hypervisor
Source§fn clone(&self) -> Hypervisor
fn clone(&self) -> Hypervisor
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for Hypervisor
Source§impl Debug for Hypervisor
impl Debug for Hypervisor
Source§impl Default for Hypervisor
impl Default for Hypervisor
Source§impl<'de> Deserialize<'de> for Hypervisor
impl<'de> Deserialize<'de> for Hypervisor
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>,
Source§impl Display for Hypervisor
impl Display for Hypervisor
impl Eq for Hypervisor
Source§impl FromStr for Hypervisor
impl FromStr for Hypervisor
Source§impl PartialEq for Hypervisor
impl PartialEq for Hypervisor
Source§impl Serialize for Hypervisor
impl Serialize for Hypervisor
impl StructuralPartialEq for Hypervisor
Source§impl TypedDispatcher for Hypervisor
impl TypedDispatcher for Hypervisor
Source§fn variant_kinds() -> Vec<&'static str>
fn variant_kinds() -> Vec<&'static str>
Source§fn variant_fields() -> Vec<(&'static str, Vec<&'static str>)>
fn variant_fields() -> Vec<(&'static str, Vec<&'static str>)>
inherit (variant) <fields> Nix patterns.Source§fn variant_count() -> usize
fn variant_count() -> usize
Auto Trait Implementations§
impl Freeze for Hypervisor
impl RefUnwindSafe for Hypervisor
impl Send for Hypervisor
impl Sync for Hypervisor
impl Unpin for Hypervisor
impl UnsafeUnpin for Hypervisor
impl UnwindSafe for Hypervisor
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> GetSetFdFlags for T
impl<T> GetSetFdFlags for T
Source§fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
self file descriptor.Source§fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
Source§fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: Sized + AsFilelike,
fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: Sized + AsFilelike,
self file descriptor. Read moreSource§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> ⓘ
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> ⓘ
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