pub enum RouteError {
EmptyPattern,
DuplicatePattern(String),
InvalidRegexPattern(String),
}Expand description
Represents errors related to route definitions and matching.
Variants§
EmptyPattern
The route pattern cannot be empty.
DuplicatePattern(String)
A route with the same pattern has already been defined.
InvalidRegexPattern(String)
The provided route pattern is not a valid regular expression.
Trait Implementations§
Source§impl Clone for RouteError
impl Clone for RouteError
Source§impl<'de> Deserialize<'de> for RouteError
impl<'de> Deserialize<'de> for RouteError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for RouteError
impl Display for RouteError
impl Eq for RouteError
Source§impl Error for RouteError
Implements the standard error trait for RouteError.
impl Error for RouteError
Implements the standard error trait for RouteError.
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 PartialEq for RouteError
impl PartialEq for RouteError
Source§impl Serialize for RouteError
impl Serialize for RouteError
impl StructuralPartialEq for RouteError
Auto Trait Implementations§
impl Forget for RouteError
impl Freeze for RouteError
impl Move for RouteError
impl RefUnwindSafe for RouteError
impl Send for RouteError
impl Sync for RouteError
impl Unpin for RouteError
impl UnsafeUnpin for RouteError
impl UnwindSafe for RouteError
Blanket Implementations§
impl<T> AnySend for T
impl<T> AnySendClone for T
impl<T> AnySendSync for T
impl<T> AnySendSyncClone for T
impl<T> AnySync for T
impl<T> AnySyncClone for T
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.