pub enum SshDiagnosis {
PermissionDenied,
ConnectionRefused,
Unreachable,
HostKeyChanged,
Other,
}Expand description
What went wrong establishing an SSH connection, as inferred from stderr.
Variants§
PermissionDenied
The host is reachable and sshd is up, but no key authenticates.
ConnectionRefused
TCP connected (or was actively rejected) but nothing is listening.
Unreachable
No route to the host at all — DNS, network, or a dead box.
HostKeyChanged
The host’s key changed since it was last trusted.
Other
Unrecognized — the caller falls back to the raw error, no fabricated advice.
Trait Implementations§
Source§impl Clone for SshDiagnosis
impl Clone for SshDiagnosis
Source§fn clone(&self) -> SshDiagnosis
fn clone(&self) -> SshDiagnosis
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 SshDiagnosis
Source§impl Debug for SshDiagnosis
impl Debug for SshDiagnosis
Source§impl PartialEq for SshDiagnosis
impl PartialEq for SshDiagnosis
impl StructuralPartialEq for SshDiagnosis
Auto Trait Implementations§
impl Freeze for SshDiagnosis
impl RefUnwindSafe for SshDiagnosis
impl Send for SshDiagnosis
impl Sync for SshDiagnosis
impl Unpin for SshDiagnosis
impl UnsafeUnpin for SshDiagnosis
impl UnwindSafe for SshDiagnosis
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