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