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§
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>>
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.