#[non_exhaustive]pub enum FailureKind {
Auth,
Config,
NotTrustedDirectory,
SessionNotFound,
Unclassified,
}Expand description
The class of a failed command, for matching without destructuring.
Returned by Error::failure_kind.
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.
Auth
The CLI could not authenticate.
Config
The CLI rejected the configuration before running.
NotTrustedDirectory
The working directory was not trusted.
SessionNotFound
The session or thread being resumed does not exist.
Unclassified
A non-zero exit that matched no known signature.
Trait Implementations§
Source§impl Clone for FailureKind
impl Clone for FailureKind
Source§fn clone(&self) -> FailureKind
fn clone(&self) -> FailureKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for FailureKind
Source§impl Debug for FailureKind
impl Debug for FailureKind
impl Eq for FailureKind
Source§impl PartialEq for FailureKind
impl PartialEq for FailureKind
impl StructuralPartialEq for FailureKind
Auto Trait Implementations§
impl Freeze for FailureKind
impl RefUnwindSafe for FailureKind
impl Send for FailureKind
impl Sync for FailureKind
impl Unpin for FailureKind
impl UnsafeUnpin for FailureKind
impl UnwindSafe for FailureKind
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