pub enum InvalidScopeToken {
EmptyString,
InvalidCharacter {
position: usize,
value: u8,
},
}Expand description
An error indicating that the provided string is not a valid scope token
Variants§
EmptyString
A scope token cannot be the empty string
InvalidCharacter
The string contained a byte that is not legal for a scope token
Trait Implementations§
Source§impl Debug for InvalidScopeToken
impl Debug for InvalidScopeToken
Source§impl Display for InvalidScopeToken
impl Display for InvalidScopeToken
Source§impl Error for InvalidScopeToken
impl Error for InvalidScopeToken
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 From<Infallible> for InvalidScopeToken
impl From<Infallible> for InvalidScopeToken
Source§fn from(x: Infallible) -> Self
fn from(x: Infallible) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for InvalidScopeToken
impl RefUnwindSafe for InvalidScopeToken
impl Send for InvalidScopeToken
impl Sync for InvalidScopeToken
impl Unpin for InvalidScopeToken
impl UnwindSafe for InvalidScopeToken
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