pub struct Kernel<A: Arch> { /* private fields */ }Expand description
The kernel: a thin wrapper over an Arch impl that owns the
state. nub is the microkernel that this represents; callers use
it via the uniform Nub handle in the nub crate, which selects
the backend (local interpreter vs hyperlight RPC) at construction
time.
Implementations§
Source§impl<A: Arch> Kernel<A>
impl<A: Arch> Kernel<A>
pub const fn new(arch: A) -> Self
pub fn invoke( &mut self, target: InstanceRef, endpoint: u16, args: &[u8], opts: InvokeOptions, ) -> Result<InvokeOutcome, A::Error>
pub fn state_root(&self) -> CapHash
pub fn arch(&self) -> &A
pub fn arch_mut(&mut self) -> &mut A
Auto Trait Implementations§
impl<A> Freeze for Kernel<A>where
A: Freeze,
impl<A> RefUnwindSafe for Kernel<A>where
A: RefUnwindSafe,
impl<A> Send for Kernel<A>where
A: Send,
impl<A> Sync for Kernel<A>where
A: Sync,
impl<A> Unpin for Kernel<A>where
A: Unpin,
impl<A> UnsafeUnpin for Kernel<A>where
A: UnsafeUnpin,
impl<A> UnwindSafe for Kernel<A>where
A: UnwindSafe,
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