ssh_keys/error.rs
1quick_error! {
2 /// Key parsing error
3 #[derive(Debug)]
4 pub enum Error {
5 /// This error usually means that file is damaged
6 InvalidFormat {
7 description("invalid key format")
8 }
9 /// Unsupported key type
10 UnsupportedType(typ: String) {
11 description("unsupported key type")
12 display("unsupported key type {:?}", typ)
13 }
14 /// Private key was encrypted (we don't support encrypted keys yet)
15 Encrypted {
16 description("key was encrypted")
17 }
18 #[doc(hidden)]
19 __Nonexhaustive
20 }
21}