#[non_exhaustive]pub enum StrictError {
UnknownShort(String),
UnknownLong(String),
MissingValue(char),
Internal(String),
}Expand description
Errors surfaced by parse_argv.
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.
UnknownShort(String)
An excluded short flag was supplied. The String payload is the
upstream-exact stderr line (per format_unknown_flag).
UnknownLong(String)
An excluded long flag was supplied. The String payload is the
upstream-exact stderr line.
MissingValue(char)
An expected argument value was missing (e.g. -M with no port).
Internal(String)
Conversion of StrictError into AutosshError for the public
API.
Trait Implementations§
Source§impl Debug for StrictError
impl Debug for StrictError
Source§impl Display for StrictError
impl Display for StrictError
Source§impl Error for StrictError
impl Error for StrictError
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<StrictError> for AutosshError
impl From<StrictError> for AutosshError
Source§fn from(_err: StrictError) -> Self
fn from(_err: StrictError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for StrictError
impl RefUnwindSafe for StrictError
impl Send for StrictError
impl Sync for StrictError
impl Unpin for StrictError
impl UnsafeUnpin for StrictError
impl UnwindSafe for StrictError
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