Enum ssh_agent_client_rs::Error
source · pub enum Error {
UnknownMessageType,
InvalidData(Option<String>),
IO(Option<String>, Error),
SSHKey(Error),
RemoteFailure,
}Expand description
This enum represents the different Errors that might be returned by this crate.
Variants§
UnknownMessageType
A message with an unknown type field was received.
InvalidData(Option<String>)
An invalid message was received, optionally holding a String with additional detail.
IO(Option<String>, Error)
An operation returned a std::io::Error, enclosed with in the value optionally along with a String detailing the context when the error occurred.
SSHKey(Error)
An operation returned a ssh_key::Error wrapped in this variant.
RemoteFailure
An operation returned the Failure message from the remote ssh-agent.
Trait Implementations§
source§impl Error for Error
impl Error for Error
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 From<TryFromIntError> for Error
impl From<TryFromIntError> for Error
source§fn from(_: TryFromIntError) -> Self
fn from(_: TryFromIntError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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