pub struct RouterBuilder<'a> { /* private fields */ }
Implementations§
Source§impl<'a> RouterBuilder<'a>
impl<'a> RouterBuilder<'a>
pub fn add_not_found<B>(self, handler: B) -> Selfwhere
B: InnerHandler + 'static,
Source§impl<'a> RouterBuilder<'a>
impl<'a> RouterBuilder<'a>
pub fn add_get<B>(self, re: &'a str, handler: B) -> Selfwhere
B: InnerHandler + 'static,
pub fn add_post<B>(self, re: &'a str, handler: B) -> Selfwhere
B: InnerHandler + 'static,
pub fn add_put<B>(self, re: &'a str, handler: B) -> Selfwhere
B: InnerHandler + 'static,
pub fn add_patch<B>(self, re: &'a str, handler: B) -> Selfwhere
B: InnerHandler + 'static,
pub fn add_delete<B>(self, re: &'a str, handler: B) -> Selfwhere
B: InnerHandler + 'static,
pub fn add_head<B>(self, re: &'a str, handler: B) -> Selfwhere
B: InnerHandler + 'static,
pub fn add_get_with_priority<B>(
self,
re: &'a str,
priority: usize,
handler: B,
) -> Selfwhere
B: InnerHandler + 'static,
pub fn add_post_with_priority<B>(
self,
re: &'a str,
priority: usize,
handler: B,
) -> Selfwhere
B: InnerHandler + 'static,
pub fn add_put_with_priority<B>(
self,
re: &'a str,
priority: usize,
handler: B,
) -> Selfwhere
B: InnerHandler + 'static,
pub fn add_patch_with_priority<B>(
self,
re: &'a str,
priority: usize,
handler: B,
) -> Selfwhere
B: InnerHandler + 'static,
pub fn add_delete_with_priority<B>(
self,
re: &'a str,
priority: usize,
handler: B,
) -> Selfwhere
B: InnerHandler + 'static,
pub fn add_head_with_priority<B>(
self,
re: &'a str,
priority: usize,
handler: B,
) -> Selfwhere
B: InnerHandler + 'static,
pub fn finish(self) -> Result<Router>
Trait Implementations§
Source§impl<'a> Default for RouterBuilder<'a>
impl<'a> Default for RouterBuilder<'a>
Source§fn default() -> RouterBuilder<'a>
fn default() -> RouterBuilder<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for RouterBuilder<'a>
impl<'a> !RefUnwindSafe for RouterBuilder<'a>
impl<'a> Send for RouterBuilder<'a>
impl<'a> Sync for RouterBuilder<'a>
impl<'a> Unpin for RouterBuilder<'a>
impl<'a> !UnwindSafe for RouterBuilder<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more