pub enum CommandParseError {
Signal(ParseSignalError),
StreamMode(ParseStreamModeError),
AuthRetryMode(ParseAuthRetryModeError),
Syntax(String),
}Expand description
Error returned when parsing a command string fails.
Variants§
Signal(ParseSignalError)
Unrecognized signal name.
StreamMode(ParseStreamModeError)
Unrecognized stream mode.
AuthRetryMode(ParseAuthRetryModeError)
Unrecognized auth retry mode.
Syntax(String)
Malformed command syntax (wrong number of arguments, non-numeric values where numbers are expected, etc.).
Trait Implementations§
Source§impl Clone for CommandParseError
impl Clone for CommandParseError
Source§fn clone(&self) -> CommandParseError
fn clone(&self) -> CommandParseError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§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
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<ParseAuthRetryModeError> for CommandParseError
impl From<ParseAuthRetryModeError> for CommandParseError
Source§fn from(source: ParseAuthRetryModeError) -> Self
fn from(source: ParseAuthRetryModeError) -> Self
Converts to this type from the input type.
Source§impl From<ParseSignalError> for CommandParseError
impl From<ParseSignalError> for CommandParseError
Source§fn from(source: ParseSignalError) -> Self
fn from(source: ParseSignalError) -> Self
Converts to this type from the input type.
Source§impl From<ParseStreamModeError> for CommandParseError
impl From<ParseStreamModeError> for CommandParseError
Source§fn from(source: ParseStreamModeError) -> Self
fn from(source: ParseStreamModeError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CommandParseError
impl PartialEq for CommandParseError
impl Eq 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 UnsafeUnpin 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