pub enum SshAgentError {
CommandFailed(String),
NotAvailable(String),
IoError(String),
}Expand description
Domain error for system SSH agent operations.
Args:
CommandFailed— The ssh-add command ran but returned a non-zero exit code.NotAvailable— The SSH agent is not running or cannot be reached.IoError— A filesystem or process I/O error occurred.
Usage:
ⓘ
use auths_core::ports::ssh_agent::SshAgentError;
fn handle(err: SshAgentError) {
match err {
SshAgentError::CommandFailed(msg) => eprintln!("ssh-add failed: {msg}"),
SshAgentError::NotAvailable(msg) => eprintln!("agent unavailable: {msg}"),
SshAgentError::IoError(msg) => eprintln!("I/O error: {msg}"),
}
}Variants§
CommandFailed(String)
The ssh-add command ran but returned a failure status.
NotAvailable(String)
The system SSH agent is not available.
IoError(String)
A filesystem or process I/O error.
Trait Implementations§
Source§impl Debug for SshAgentError
impl Debug for SshAgentError
Source§impl Display for SshAgentError
impl Display for SshAgentError
Source§impl Error for SshAgentError
impl Error for SshAgentError
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 SshAgentError
impl RefUnwindSafe for SshAgentError
impl Send for SshAgentError
impl Sync for SshAgentError
impl Unpin for SshAgentError
impl UnsafeUnpin for SshAgentError
impl UnwindSafe for SshAgentError
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