ayun_core::traits

Trait ApplicationTrait

Source
pub trait ApplicationTrait: Default {
    // Provided methods
    fn register(container: Container) -> Result<Container> { ... }
    fn boot() { ... }
    fn new() -> Self { ... }
    fn run<S: ServiceTrait>(self) -> Result<()>
       where Self: Sized { ... }
}

Provided Methods§

Source

fn register(container: Container) -> Result<Container>

Source

fn boot()

Source

fn new() -> Self

Source

fn run<S: ServiceTrait>(self) -> Result<()>
where Self: Sized,

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§