pub enum SshConfigError {
NotFound {
path: String,
},
PermissionDenied {
path: String,
message: String,
},
CheckFailed {
path: String,
message: String,
},
OpenFailed {
path: String,
message: String,
},
ParseFailed {
path: String,
message: String,
},
}Expand description
Error returned when SSH configuration validation or parsing fails.
Variants§
NotFound
The SSH config file path does not exist.
PermissionDenied
The SSH config file exists but access was denied.
CheckFailed
Checking whether the SSH config file exists failed.
OpenFailed
Opening the SSH config file failed.
ParseFailed
Parsing the SSH config file failed.
Trait Implementations§
Source§impl Clone for SshConfigError
impl Clone for SshConfigError
Source§fn clone(&self) -> SshConfigError
fn clone(&self) -> SshConfigError
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 moreSource§impl Debug for SshConfigError
impl Debug for SshConfigError
Source§impl Display for SshConfigError
impl Display for SshConfigError
Source§impl Error for SshConfigError
impl Error for SshConfigError
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()
Auto Trait Implementations§
impl Freeze for SshConfigError
impl RefUnwindSafe for SshConfigError
impl Send for SshConfigError
impl Sync for SshConfigError
impl Unpin for SshConfigError
impl UnsafeUnpin for SshConfigError
impl UnwindSafe for SshConfigError
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