pub trait Request {
type Method: Eq + Hash + Clone + Send + Sync;
// Required methods
fn path<'a>(&'a self) -> &'a str;
fn method<'a>(&'a self) -> &Self::Method;
}
Expand description
Trait to represent a Request which can be handled
pub trait Request {
type Method: Eq + Hash + Clone + Send + Sync;
// Required methods
fn path<'a>(&'a self) -> &'a str;
fn method<'a>(&'a self) -> &Self::Method;
}
Trait to represent a Request which can be handled