[−][src]Struct burner::Router
Implementations
impl Router
[src]
pub fn new() -> Self
[src]
pub fn create_child_router(&mut self, router: Router)
[src]
pub fn set_path(&mut self, path: String)
[src]
pub fn handle_request(
&self,
req: &mut Request,
res: &mut Response,
parent_path: &String
) -> bool
[src]
&self,
req: &mut Request,
res: &mut Response,
parent_path: &String
) -> bool
Trait Implementations
impl RouterService for Router
[src]
fn get(&mut self, path: &str, f: Controller) -> &mut Self
[src]
fn post(&mut self, path: &str, f: Controller) -> &mut Self
[src]
fn put(&mut self, path: &str, f: Controller) -> &mut Self
[src]
fn delete(&mut self, path: &str, f: Controller) -> &mut Self
[src]
fn middleware(
&mut self,
path: &str,
f: Box<dyn Fn(&Request, &Response) + Send + Sync + 'static>
) -> &mut Self
[src]
&mut self,
path: &str,
f: Box<dyn Fn(&Request, &Response) + Send + Sync + 'static>
) -> &mut Self
fn mount(&mut self, relative_path: &str, router: Router) -> &mut Self
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Router
impl Send for Router
impl Sync for Router
impl Unpin for Router
impl !UnwindSafe for Router
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,