Skip to main content

DynStaticExecutor

Type Alias DynStaticExecutor 

Source
pub type DynStaticExecutor = dyn SomeStaticExecutor<ExecutorNotifier = Box<dyn ExecutorNotified>>;
Expand description

The appropriate type for a dynamically-dispatched static executor.

This type alias provides a convenient way to work with trait objects for static executors when the concrete type isn’t known at compile time.

§Example

fn store_static_executor(exec: Box<DynStaticExecutor>) {
    // Can store and use the static executor dynamically
}