Trait oasis_core_runtime::dispatcher::Initializer

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

Interface for dispatcher initializers.

Required Methods§

source

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

Initializes the dispatcher(s).

Implementors§

source§

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