ContextErased

Trait ContextErased 

Source
pub trait ContextErased: Send + Sync {
    // Required method
    fn run_erased(
        &self,
        parmas: &RuntimeParams,
    ) -> Result<Box<dyn Captured>, CoreError>;
}
Expand description

Engine-facing trait (object-safe, heterogenous)

Required Methods§

Source

fn run_erased( &self, parmas: &RuntimeParams, ) -> Result<Box<dyn Captured>, CoreError>

Implementors§

Source§

impl<T> ContextErased for T
where T: Context + Send + Sync + 'static,