ssh_agent/
error.rs

1use std::io;
2use super::proto::error::ProtoError;
3
4#[derive(Debug)]
5pub enum AgentError {
6    User,
7    Proto(ProtoError),
8    IO(io::Error)
9}
10
11impl From<ProtoError> for AgentError {
12    fn from(e: ProtoError) -> AgentError {
13        AgentError::Proto(e)
14    }
15}
16
17impl From<io::Error> for AgentError {
18    fn from(e: io::Error) -> AgentError {
19        AgentError::IO(e)
20    }
21}