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
Appholds loaded configuration for a Spin application. - AppComponent
- An
AppComponentholds configuration for a Spin application component. - Configure
AppContext - Factor
Data - Helper type to satisfy the
D: HasDataimplementations needed by wasmtime’s generatedadd_to_linkerfunctions. - 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
InstanceBuildersfor a particularFactor’sInstanceBuilder. - Init
Context - An InitContext is passed to
Factor::init, giving access to the global commonwasmtime::component::Linker. - Runtime
Factors - A collection of
Factors 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
FactorInstanceBuilderis also the instance state.
Type Aliases§
- Factor
Instance State - The instance state of the given
FactorF. - Result
- Result wrapper type defaulting to use
Error.