Re-exports§
pub use crate::runtime_config::FactorRuntimeConfigSource;
pub use crate::runtime_config::RuntimeConfigSourceFinalizer;
pub use anyhow;
pub use serde;
pub use wasmtime;
Modules§
Structs§
- App
- An
App
holds loaded configuration for a Spin application. - AppComponent
- An
AppComponent
holds configuration for a Spin application component. - Configure
AppContext - Init
Context - An InitContext is passed to
Factor::init
, giving access to the global commonwasmtime::component::Linker
. - Prepare
Context - A PrepareContext is passed to
Factor::prepare
.
Enums§
Traits§
- AsInstance
State - Factor
- A contained (i.e., “factored”) piece of runtime functionality.
- Factor
Instance Builder - A builder for a
Factor
’s per instance state. - HasInstance
Builder - Allows querying an
InstanceBuilders
for a particularFactor
’sInstanceBuilder
. - Runtime
Factors - A collection of
Factor
s that are initialized and configured together. - Runtime
Factors Instance State - Get the state of a particular Factor from the overall InstanceState
- Self
Instance Builder - A helper trait for when the type implementing
FactorInstanceBuilder
is also the instance state.
Type Aliases§
- Factor
Instance State - The instance state of the given
Factor
F
. - Result
- Result wrapper type defaulting to use
Error
.