pub struct RouteMatch { /* private fields */ }
Expand description
A routing match for a URL.
Implementations§
Source§impl RouteMatch
impl RouteMatch
Sourcepub fn synthetic(component_id: &str, path: &str) -> Self
pub fn synthetic(component_id: &str, path: &str) -> Self
A synthetic match as if the given path was matched against the wildcard route. Used in service chaining.
Sourcepub fn component_id(&self) -> &str
pub fn component_id(&self) -> &str
The matched component.
Sourcepub fn based_route(&self) -> &str
pub fn based_route(&self) -> &str
The matched route, as originally written in the manifest, combined with the base.
Sourcepub fn based_route_or_prefix(&self) -> String
pub fn based_route_or_prefix(&self) -> String
The matched route, excluding any trailing wildcard, combined with the base.
Sourcepub fn raw_route_or_prefix(&self) -> String
pub fn raw_route_or_prefix(&self) -> String
The matched route, excluding any trailing wildcard.
Sourcepub fn named_wildcards(&self) -> &HashMap<String, String>
pub fn named_wildcards(&self) -> &HashMap<String, String>
The named wildcards captured from the path, if any
Sourcepub fn trailing_wildcard(&self) -> String
pub fn trailing_wildcard(&self) -> String
The trailing wildcard part of the path, if any
Auto Trait Implementations§
impl Freeze for RouteMatch
impl RefUnwindSafe for RouteMatch
impl Send for RouteMatch
impl Sync for RouteMatch
impl Unpin for RouteMatch
impl UnwindSafe 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
Source§impl<T> GetSetFdFlags for T
impl<T> GetSetFdFlags for T
Source§fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
Query the “status” flags for the
self
file descriptor.Source§fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
Source§fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
Set the “status” flags for the
self
file descriptor. Read moreSource§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more