pub trait ApplicationTrait: Default {
// Provided methods
fn register(
container: Container,
) -> Result<Container, Box<dyn Error + Sync + Send>> { ... }
fn boot() { ... }
fn new() -> Self { ... }
fn run<S>(self) -> Result<(), Box<dyn Error + Sync + Send>>
where S: ServiceTrait,
Self: Sized { ... }
}Provided Methods§
fn register( container: Container, ) -> Result<Container, Box<dyn Error + Sync + Send>>
fn boot()
fn new() -> Self
fn run<S>(self) -> Result<(), Box<dyn Error + Sync + Send>>where
S: ServiceTrait,
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.