crb_runtime::runtime

Trait Entrypoint

Source
pub trait Entrypoint: Runtime + Sized {
    // Provided method
    fn entrypoint<'async_trait>(
        self,
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
       where Self: Send + 'async_trait { ... }
}

Provided Methods§

Source

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

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.

Implementors§

Source§

impl<T> Entrypoint for T
where T: Runtime + Sized,