pub enum RoutePatternError {
InvalidSyntax(String),
MultipleCatchAll,
CatchAllNotLast,
InvalidConstraint(String),
DuplicateParameter(String),
}
Expand description
Errors that can occur during route pattern operations
Variants§
InvalidSyntax(String)
MultipleCatchAll
CatchAllNotLast
InvalidConstraint(String)
DuplicateParameter(String)
Trait Implementations§
Source§impl Debug for RoutePatternError
impl Debug for RoutePatternError
Source§impl Display for RoutePatternError
impl Display for RoutePatternError
Source§impl Error for RoutePatternError
impl Error for RoutePatternError
1.30.0 · 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<RoutePatternError> for CompilationError
impl From<RoutePatternError> for CompilationError
Source§fn from(source: RoutePatternError) -> Self
fn from(source: RoutePatternError) -> 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 RoutePatternError
impl RefUnwindSafe for RoutePatternError
impl Send for RoutePatternError
impl Sync for RoutePatternError
impl Unpin for RoutePatternError
impl UnwindSafe for RoutePatternError
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