pub trait Initializer: Send + Sync {
    // Required method
    fn init(&self, state: PreInitState<'_>) -> PostInitState;
}
Expand description

Interface for dispatcher initializers.

Required Methods§

source

fn init(&self, state: PreInitState<'_>) -> PostInitState

Initializes the dispatcher(s).

Implementors§

source§

impl<F> Initializer for F
where F: Fn(PreInitState<'_>) -> PostInitState + Send + Sync,