Struct wal_core::router::builder::RouterBuilder
source · pub struct RouterBuilder<T> { /* private fields */ }Expand description
Builds application with routing.
Implementations§
source§impl<T> RouterBuilder<T>
impl<T> RouterBuilder<T>
sourcepub fn add_page<C>(self, path: &'static str) -> RouterBuilder<Valid>
pub fn add_page<C>(self, path: &'static str) -> RouterBuilder<Valid>
sourcepub fn add_not_found_page<C>(self, path: &'static str) -> RouterBuilder<Valid>
pub fn add_not_found_page<C>(self, path: &'static str) -> RouterBuilder<Valid>
Adds provided not found page to application. All routes which cannot be resolved will be redirected to this page. Adding more than one not found page results in undefined behavior.
Trait Implementations§
source§impl Default for RouterBuilder<Invalid>
impl Default for RouterBuilder<Invalid>
source§fn default() -> Self
fn default() -> Self
Creates default RouterBuilder in Invalid state.
Auto Trait Implementations§
impl<T> !RefUnwindSafe for RouterBuilder<T>
impl<T> !Send for RouterBuilder<T>
impl<T> !Sync for RouterBuilder<T>
impl<T> Unpin for RouterBuilder<T>where
T: Unpin,
impl<T> !UnwindSafe for RouterBuilder<T>
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