pub trait ActionFactory: Send + Sync {
// Required method
fn build(
&self,
spec: &ActionSpec,
) -> Result<Arc<dyn Action>, ActionBuildError>;
}Expand description
Action factory trait
Required Methods§
fn build(&self, spec: &ActionSpec) -> Result<Arc<dyn Action>, ActionBuildError>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".