pub struct Route {
pub path: String,
pub view: Arc<dyn View>,
}Expand description
A route is a mapping between a path and a view.
When a request is made to a path, the associated view is called to handle the request.
Fields§
§path: String§view: Arc<dyn View>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Route
impl !RefUnwindSafe for Route
impl Send for Route
impl Sync for Route
impl Unpin for Route
impl !UnwindSafe for Route
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