Trait Application

Source
pub trait Application: Initialize + Serves {
    // Provided methods
    fn run<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<Never>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
    fn run_custom<'life0, 'async_trait>(
        &'life0 self,
        config: RunConfig,
    ) -> Pin<Box<dyn Future<Output = Result<Never>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
    fn start<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<ServiceManager>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
}

Provided Methods§

Source

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

Starts the app and runs forever with default monitoring

Source

fn run_custom<'life0, 'async_trait>( &'life0 self, config: RunConfig, ) -> Pin<Box<dyn Future<Output = Result<Never>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Starts the app and runs forever with configured monitoring

Source

fn start<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<ServiceManager>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Starts the app and returns, so you may implement custom monitoring.

Implementors§