#[repr(u8)]pub enum KernelType {
Hermit = 0,
MicroLinux = 1,
Asterinas = 2,
WasiPreview2 = 3,
Custom = 4,
TestStub = 254,
}Expand description
Kernel type / runtime model.
Variants§
Hermit = 0
Hermit OS unikernel (Rust-native).
MicroLinux = 1
Minimal Linux kernel (bzImage compatible).
Asterinas = 2
Asterinas framekernel (Linux ABI compatible).
WasiPreview2 = 3
WASI Preview 2 component (alternative to WASM_SEG).
Custom = 4
Custom kernel (requires external VMM knowledge).
TestStub = 254
Test stub for CI (boots, reports health, exits).
Trait Implementations§
Source§impl Clone for KernelType
impl Clone for KernelType
Source§fn clone(&self) -> KernelType
fn clone(&self) -> KernelType
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 KernelType
impl Debug for KernelType
Source§impl Hash for KernelType
impl Hash for KernelType
Source§impl PartialEq for KernelType
impl PartialEq for KernelType
Source§impl TryFrom<u8> for KernelType
impl TryFrom<u8> for KernelType
impl Copy for KernelType
impl Eq for KernelType
impl StructuralPartialEq for KernelType
Auto Trait Implementations§
impl Freeze for KernelType
impl RefUnwindSafe for KernelType
impl Send for KernelType
impl Sync for KernelType
impl Unpin for KernelType
impl UnwindSafe for KernelType
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