pub enum RouteMatchError {
NoMatch,
PatternError(RoutePatternError),
RouteConflict(String, String),
}
Expand description
Errors that can occur during route matching
Variants§
Trait Implementations§
Source§impl Debug for RouteMatchError
impl Debug for RouteMatchError
Source§impl Display for RouteMatchError
impl Display for RouteMatchError
Source§impl Error for RouteMatchError
impl Error for RouteMatchError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<RouteMatchError> for CompilationError
impl From<RouteMatchError> for CompilationError
Source§fn from(source: RouteMatchError) -> Self
fn from(source: RouteMatchError) -> Self
Converts to this type from the input type.
Source§impl From<RouteMatchError> for RouteValidationError
impl From<RouteMatchError> for RouteValidationError
Source§fn from(source: RouteMatchError) -> Self
fn from(source: RouteMatchError) -> Self
Converts to this type from the input type.
Source§impl From<RoutePatternError> for RouteMatchError
impl From<RoutePatternError> for RouteMatchError
Source§fn from(source: RoutePatternError) -> Self
fn from(source: RoutePatternError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RouteMatchError
impl RefUnwindSafe for RouteMatchError
impl Send for RouteMatchError
impl Sync for RouteMatchError
impl Unpin for RouteMatchError
impl UnwindSafe for RouteMatchError
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