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§
Auto 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