pub enum OpensshLoginError {
LoginExceedMaxTries,
LoginRootDenied,
AuthNone,
AuthPassword,
AuthKbdint,
AuthPubkey,
AuthHostBased,
AuthGssapi,
InvalidUser,
Unknown(es_openssh_login_result_type_t),
ApiUnavailable,
}Available on macOS only.
Expand description
OpenSSH login failed.
Usually constructed using
es_openssh_login_result_type_t::ok().
Variants§
LoginExceedMaxTries
LoginRootDenied
AuthNone
AuthPassword
AuthKbdint
AuthPubkey
AuthHostBased
AuthGssapi
InvalidUser
Unknown(es_openssh_login_result_type_t)
Catches new variants in the C enum
Used to signal a call to an unavailable API, either because it was removed or because it is only available in higher versions (eg 12.0+ when running on macOS 11.0)
Trait Implementations§
source§impl Clone for OpensshLoginError
impl Clone for OpensshLoginError
source§fn clone(&self) -> OpensshLoginError
fn clone(&self) -> OpensshLoginError
Returns a copy 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 OpensshLoginError
impl Debug for OpensshLoginError
source§impl Display for OpensshLoginError
impl Display for OpensshLoginError
source§impl Error for OpensshLoginError
impl Error for OpensshLoginError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 Hash for OpensshLoginError
impl Hash for OpensshLoginError
source§impl PartialEq for OpensshLoginError
impl PartialEq for OpensshLoginError
source§fn eq(&self, other: &OpensshLoginError) -> bool
fn eq(&self, other: &OpensshLoginError) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for OpensshLoginError
impl Eq for OpensshLoginError
impl StructuralEq for OpensshLoginError
impl StructuralPartialEq for OpensshLoginError
Auto Trait Implementations§
impl RefUnwindSafe for OpensshLoginError
impl Send for OpensshLoginError
impl Sync for OpensshLoginError
impl Unpin for OpensshLoginError
impl UnwindSafe for OpensshLoginError
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