pub struct RouteMatch {
pub controller: Arc<dyn Controller>,
pub action: String,
}Expand description
The result of Router::match_controller: the matched controller and
the leftover path segments joined as the controller’s action. Returned
from a path-only resolve (no verb / parameter checks; those happen
inside the controller’s dispatch).
Fields§
§controller: Arc<dyn Controller>The controller mounted at the matched longest prefix.
action: StringThe unconsumed path below that prefix, joined with / — the
controller’s “action”.
Trait Implementations§
Source§impl Clone for RouteMatch
impl Clone for RouteMatch
Source§fn clone(&self) -> RouteMatch
fn clone(&self) -> RouteMatch
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for RouteMatch
impl !UnwindSafe for RouteMatch
impl Freeze for RouteMatch
impl Send for RouteMatch
impl Sync for RouteMatch
impl Unpin for RouteMatch
impl UnsafeUnpin for RouteMatch
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