pub struct Engine<T> { /* private fields */ }
Expand description
An Engine
is a global context for the initialization and execution of
Spin components.
Implementations§
source§impl<T: Send + Sync> Engine<T>
impl<T: Send + Sync> Engine<T>
sourcepub fn builder(config: &Config) -> Result<EngineBuilder<T>>
pub fn builder(config: &Config) -> Result<EngineBuilder<T>>
Creates a new EngineBuilder
with the given Config
.
sourcepub fn store_builder(&self) -> StoreBuilder
pub fn store_builder(&self) -> StoreBuilder
Creates a new StoreBuilder
.
sourcepub fn instantiate_pre(&self, module: &Module) -> Result<InstancePre<T>>
pub fn instantiate_pre(&self, module: &Module) -> Result<InstancePre<T>>
Creates a new InstancePre
for the given Module
.
Trait Implementations§
Auto Trait Implementations§
impl<T> !RefUnwindSafe for Engine<T>
impl<T> Send for Engine<T>where
T: Send,
impl<T> Sync for Engine<T>where
T: Send,
impl<T> Unpin for Engine<T>
impl<T> !UnwindSafe for Engine<T>
Blanket Implementations§
§impl<T> GetSetFdFlags for T
impl<T> GetSetFdFlags for T
§fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
Query the “status” flags for the
self
file descriptor.