pub struct RouterBuilder { /* private fields */ }Expand description
Builds application with routing.
Implementations§
Source§impl RouterBuilder
impl RouterBuilder
Sourcepub fn add_page<C>(self, path: &'static str) -> RouterBuilder
pub fn add_page<C>(self, path: &'static str) -> RouterBuilder
Sourcepub fn add_not_found_page<C>(self) -> RouterBuilder
pub fn add_not_found_page<C>(self) -> RouterBuilder
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
impl Default for RouterBuilder
Source§fn default() -> Self
fn default() -> Self
Creates default RouterBuilder.
Auto Trait Implementations§
impl !RefUnwindSafe for RouterBuilder
impl !Send for RouterBuilder
impl !Sync for RouterBuilder
impl !UnwindSafe for RouterBuilder
impl Freeze for RouterBuilder
impl Unpin for RouterBuilder
impl UnsafeUnpin for RouterBuilder
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more