Trait crb_runtime::runtime::StandaloneRuntime

source ·
pub trait StandaloneRuntime<T> {
    // Required methods
    fn new(input: T, label: Label) -> Self;
    fn run<'async_trait>(
        self,
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
       where Self: 'async_trait;
}
Expand description

A runtime that can be executed as a standalone activity.

Required Methods§

source

fn new(input: T, label: Label) -> Self

Returns a runtime that has to be used in an async context.

source

fn run<'async_trait>( self, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,

Run routine in place.

Object Safety§

This trait is not object safe.

Implementors§