Struct gotham::router::route::matcher::AnyRouteMatcher [−][src]
pub struct AnyRouteMatcher {}
Expand description
Matches any request without restriction (i.e. will accept any request which has already matched the path to the current route). For example, this matcher is used when delegating a path prefix to another router.
Examples
let matcher = AnyRouteMatcher::new();
assert!(matcher.is_match(&state).is_ok());
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for AnyRouteMatcher
impl Send for AnyRouteMatcher
impl Sync for AnyRouteMatcher
impl Unpin for AnyRouteMatcher
impl UnwindSafe for AnyRouteMatcher
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = M
type Output = M
The concrete RouteMatcher each implementation will provide.
Transform into a RouteMatcher
of the the associated type identified by Output
.
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more