pub(crate) trait RumaHandler<T> {
// Required methods
fn add_route(
&'static self,
router: Router<State>,
path: &str,
) -> Router<State>;
fn add_routes(&'static self, router: Router<State>) -> Router<State>;
fn call_route(
handler: &'static (dyn Any + Send + Sync),
state: State,
request: Request<Body>,
) -> BoxFuture<'static, Response>;
}Required Methods§
fn add_route(&'static self, router: Router<State>, path: &str) -> Router<State>
fn add_routes(&'static self, router: Router<State>) -> Router<State>
fn call_route( handler: &'static (dyn Any + Send + Sync), state: State, request: Request<Body>, ) -> BoxFuture<'static, Response>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".