Enum InsertError
#[non_exhaustive]
pub enum InsertError
Represents errors that can occur when inserting a new route.
Variants
-
Conflict { with: String } Attempted to insert a path that conflicts with an existing route.
-
InvalidParamSegment Only one parameter per route segment is allowed.
Static segments are also allowed before a parameter, but not after it. For example,
/foo-{bar}is a valid route, but/{bar}-foois not.-
InvalidParam Parameters must be registered with a valid name and matching braces.
Note you can use
{{or}}to escape literal brackets.-
InvalidCatchAll Catch-all parameters are only allowed at the end of a path.
Trait Implementations
impl Clone for InsertError
fn clone(&self) -> InsertError
impl Debug for InsertError
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Display for InsertError
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Eq for InsertError
impl Error for InsertError
impl Hash for InsertError
fn hash<__H: Hasher>(&self, state: &mut __H)
impl Ord for InsertError
fn cmp(&self, other: &InsertError) -> Ordering
impl PartialEq for InsertError
fn eq(&self, other: &InsertError) -> bool
impl PartialOrd for InsertError
fn partial_cmp(&self, other: &InsertError) -> Option<Ordering>
impl StructuralPartialEq for InsertError
Auto Trait Implementations
impl Freeze for InsertError
impl RefUnwindSafe for InsertError
impl Send for InsertError
impl Sync for InsertError
impl Unpin for InsertError
impl UnsafeUnpin for InsertError
impl UnwindSafe for InsertError
Blanket Implementations
impl<T> Any for InsertError
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for InsertError
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for InsertError
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for InsertError
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for InsertError
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for InsertError
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T> ToString for InsertError
where
T: Display + ?Sized,
fn to_string(&self) -> String
impl<T, U> Into<U> for InsertError
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for InsertError
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for InsertError
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>