pub struct Route { /* private fields */ }Expand description
§Route
This struct defines a Route. A route is an address defined on a webserver by a /. For example, localhost/search - /search is the route.
This struct will store a reference to a function or closure, and will run it automatically when a user visits the corresponding route defined to the function.
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