Enum InsertError

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}-foo is 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.

Implementations

impl Clone for InsertError

fn clone(self: &Self) -> InsertError

impl Debug for InsertError

fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result

impl Display for InsertError

fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result

impl Eq for InsertError

impl Error for InsertError

impl Freeze for InsertError

impl Hash for InsertError

fn hash<__H: $crate::hash::Hasher>(self: &Self, state: &mut __H)

impl Ord for InsertError

fn cmp(self: &Self, other: &InsertError) -> Ordering

impl PartialEq for InsertError

fn eq(self: &Self, other: &InsertError) -> bool

impl PartialOrd for InsertError

fn partial_cmp(self: &Self, other: &InsertError) -> Option<Ordering>

impl RefUnwindSafe for InsertError

impl Send for InsertError

impl StructuralPartialEq for InsertError

impl Sync for InsertError

impl Unpin for InsertError

impl UnsafeUnpin for InsertError

impl UnwindSafe for InsertError

impl<T> Any for InsertError

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for InsertError

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for InsertError

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> CloneToUninit for InsertError

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl<T> From for InsertError

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for InsertError

fn to_owned(self: &Self) -> T
fn clone_into(self: &Self, target: &mut T)

impl<T> ToString for InsertError

fn to_string(self: &Self) -> String

impl<T, U> Into for InsertError

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for InsertError

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for InsertError

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>