pub trait RouteHandler {
// Required methods
fn get(&mut self, path: &'static str, handler: RouteCallback) -> &mut Self;
fn post(&mut self, path: &'static str, handler: RouteCallback) -> &mut Self;
fn put(&mut self, path: &'static str, handler: RouteCallback) -> &mut Self;
fn delete(
&mut self,
path: &'static str,
handler: RouteCallback,
) -> &mut Self;
fn patch(&mut self, path: &'static str, handler: RouteCallback) -> &mut Self;
}
Required Methods§
fn get(&mut self, path: &'static str, handler: RouteCallback) -> &mut Self
fn post(&mut self, path: &'static str, handler: RouteCallback) -> &mut Self
fn put(&mut self, path: &'static str, handler: RouteCallback) -> &mut Self
fn delete(&mut self, path: &'static str, handler: RouteCallback) -> &mut Self
fn patch(&mut self, path: &'static str, handler: RouteCallback) -> &mut Self
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.