pub trait InitializerBuilder<State>: Send {
type Initializer: Component;
// Required method
fn build_initializer(
self,
ctx: &BuilderContext<State>,
) -> impl Future<Output = Result<Self::Initializer>> + Send;
}Expand description
Builder for initialization components (one-shot actors that set up initial state)
Required Associated Types§
Sourcetype Initializer: Component
type Initializer: Component
The initializer component type
Required Methods§
Sourcefn build_initializer(
self,
ctx: &BuilderContext<State>,
) -> impl Future<Output = Result<Self::Initializer>> + Send
fn build_initializer( self, ctx: &BuilderContext<State>, ) -> impl Future<Output = Result<Self::Initializer>> + Send
Build the initializer component
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.