Skip to main content

ActionFactory

Trait ActionFactory 

Source
pub trait ActionFactory: Send + Sync {
    // Required method
    fn build(
        &self,
        spec: &ActionSpec,
    ) -> Result<Arc<dyn Action>, ActionBuildError>;
}
Expand description

Action factory trait

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§