pub enum GrantAtomParseError {
Empty,
MissingAction {
input: String,
},
EmptySegment {
segment: &'static str,
},
Whitespace {
segment: &'static str,
ch: char,
},
}Expand description
An atom did not match domain:action[:resource].
Variants§
Empty
The input was empty or only whitespace.
MissingAction
Only one segment was supplied.
EmptySegment
The domain or action segment was empty.
Whitespace
The domain or action contained whitespace.
Trait Implementations§
Source§impl Clone for GrantAtomParseError
impl Clone for GrantAtomParseError
Source§impl Debug for GrantAtomParseError
impl Debug for GrantAtomParseError
Source§impl Display for GrantAtomParseError
impl Display for GrantAtomParseError
impl Eq for GrantAtomParseError
Source§impl Error for GrantAtomParseError
impl Error for GrantAtomParseError
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 GrantAtomParseError
impl PartialEq for GrantAtomParseError
impl StructuralPartialEq for GrantAtomParseError
Auto Trait Implementations§
impl Freeze for GrantAtomParseError
impl RefUnwindSafe for GrantAtomParseError
impl Send for GrantAtomParseError
impl Sync for GrantAtomParseError
impl Unpin for GrantAtomParseError
impl UnsafeUnpin for GrantAtomParseError
impl UnwindSafe for GrantAtomParseError
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