ApplicationTrait

Trait ApplicationTrait 

Source
pub trait ApplicationTrait: 'static {
    type Service: ServiceTrait;

    // Provided methods
    fn configure() -> Result<(), Box<dyn Error + Sync + Send>> { ... }
    fn register<'async_trait>(
        container: Container,
    ) -> Pin<Box<dyn Future<Output = Result<Container, Box<dyn Error + Sync + Send>>> + Send + 'async_trait>> { ... }
    fn boot<'async_trait>(    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> { ... }
}

Required Associated Types§

Provided Methods§

Source

fn configure() -> Result<(), Box<dyn Error + Sync + Send>>

Source

fn register<'async_trait>( container: Container, ) -> Pin<Box<dyn Future<Output = Result<Container, Box<dyn Error + Sync + Send>>> + Send + 'async_trait>>

Source

fn boot<'async_trait>() -> Pin<Box<dyn Future<Output = ()> + 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§