Trait InstanceInternal

Source
pub trait InstanceInternal {
    // Required methods
    fn alloc(&self) -> &Alloc;
    fn alloc_mut(&mut self) -> &mut Alloc;
    fn module(&self) -> &dyn Module;
    fn state(&self) -> &State;
    fn valid_magic(&self) -> bool;
}
Expand description

APIs that are internal, but useful to implementors of extension modules; you probably don’t want this trait!

This is a trait rather than inherent impls in order to keep the lucet-runtime API clean and safe.

Required Methods§

Source

fn alloc(&self) -> &Alloc

Source

fn alloc_mut(&mut self) -> &mut Alloc

Source

fn module(&self) -> &dyn Module

Source

fn state(&self) -> &State

Source

fn valid_magic(&self) -> bool

Implementors§