ssh_agent_client_rs/
error.rs1use thiserror::Error;
3
4pub type Result<T> = std::result::Result<T, Error>;
6
7#[derive(Error, Debug)]
10pub enum Error {
11 #[error("Received an unknown message type: {0}")]
13 UnknownMessageType(u8),
14 #[error("An invalid message was received: {0}")]
16 InvalidMessage(String),
17 #[error("An error occurred communicating with the agent")]
19 AgentCommunicationError(#[from] std::io::Error),
20 #[error("An ssh key operation failed")]
22 SSHKey(#[from] ssh_key::Error),
23 #[error("An ssh encoding operation failed")]
24 SSHEncoding(#[from] ssh_encoding::Error),
25 #[error("The remote ssh agent returned the failure message")]
26 RemoteFailure,
28}