Skip to main content

Extension

Trait Extension 

Source
pub trait Extension {
    // Required method
    fn register(self, app: App) -> App;
}
Expand description

Spec §6: capabilities register through one seam. An extension receives the builder and returns it — providers, routes, middleware, anything.

Required Methods§

Source

fn register(self, app: App) -> App

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§