pub enum CommandParseError {
MissingToken(String),
UnknownCommand(String),
UnknownOption(String),
UnexpectedToken {
expected: String,
found: String,
},
TokenRequired,
NotEmpty,
NotFlag,
Incomplete,
}
Variants§
MissingToken(String)
UnknownCommand(String)
UnknownOption(String)
UnexpectedToken
TokenRequired
NotEmpty
NotFlag
Incomplete
Trait Implementations§
Source§impl Debug for CommandParseError
impl Debug for CommandParseError
Source§impl Display for CommandParseError
impl Display for CommandParseError
Source§impl Error for CommandParseError
impl Error for CommandParseError
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 CommandParseError
impl PartialEq for CommandParseError
impl StructuralPartialEq for CommandParseError
Auto Trait Implementations§
impl Freeze for CommandParseError
impl RefUnwindSafe for CommandParseError
impl Send for CommandParseError
impl Sync for CommandParseError
impl Unpin for CommandParseError
impl UnwindSafe for CommandParseError
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