#[non_exhaustive]pub enum RouteIdError {
Empty,
TooLong {
maximum: usize,
actual: usize,
},
PathLike,
InvalidByte {
index: usize,
},
}Expand description
Invalid conditional route identity.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Empty
Route identity was empty.
TooLong
Route identity exceeded RouteId::MAX_LEN.
PathLike
Route identity was . or ...
InvalidByte
A byte was outside the stable ASCII grammar.
Trait Implementations§
Source§impl Clone for RouteIdError
impl Clone for RouteIdError
Source§impl Debug for RouteIdError
impl Debug for RouteIdError
Source§impl Display for RouteIdError
impl Display for RouteIdError
impl Eq for RouteIdError
Source§impl Error for RouteIdError
impl Error for RouteIdError
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 RouteIdError
impl PartialEq for RouteIdError
impl StructuralPartialEq for RouteIdError
Auto Trait Implementations§
impl Forget for RouteIdError
impl Freeze for RouteIdError
impl Move for RouteIdError
impl RefUnwindSafe for RouteIdError
impl Send for RouteIdError
impl Sync for RouteIdError
impl Unpin for RouteIdError
impl UnsafeUnpin for RouteIdError
impl UnwindSafe for RouteIdError
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