Runner

Trait Runner 

Source
pub trait Runner<__Context__, Code>: IsProviderFor<RunnerComponent, __Context__, Code>
where __Context__: HasErrorType,
{ // Required method fn run( __context__: &__Context__, _code: PhantomData<Code>, ) -> impl Future<Output = Result<(), __Context__::Error>>; }

Required Methods§

Source

fn run( __context__: &__Context__, _code: PhantomData<Code>, ) -> impl Future<Output = Result<(), __Context__::Error>>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<__Context__, Code> Runner<__Context__, Code> for UseContext
where __Context__: HasErrorType + CanRun<Code>,

Source§

async fn run( __context__: &__Context__, _code: PhantomData<Code>, ) -> Result<(), __Context__::Error>

Source§

impl<__Context__, Code, __Components__, __Delegate__> Runner<__Context__, Code> for UseDelegate<__Components__>
where __Context__: HasErrorType, __Components__: DelegateComponent<Code, Delegate = __Delegate__>, __Delegate__: Runner<__Context__, Code>,

Source§

async fn run( __context__: &__Context__, _code: PhantomData<Code>, ) -> Result<(), __Context__::Error>

Implementors§

Source§

impl<__Component__, __Context__, Code> Runner<__Context__, Code> for __Component__
where __Context__: HasErrorType, __Component__: DelegateComponent<RunnerComponent> + IsProviderFor<RunnerComponent, __Context__, Code>, __Component__::Delegate: Runner<__Context__, Code>,