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§fn clone(&self) -> RouteError
fn clone(&self) -> RouteError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RouteError
impl Debug for RouteError
Source§impl Display for RouteError
impl Display for RouteError
Source§impl PartialEq for RouteError
impl PartialEq for RouteError
impl Eq for RouteError
impl StructuralPartialEq for RouteError
Auto Trait Implementations§
impl Freeze for RouteError
impl RefUnwindSafe for RouteError
impl Send for RouteError
impl Sync for RouteError
impl Unpin for RouteError
impl UnwindSafe for RouteError
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