1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#[derive(Fail, Debug, Eq, PartialEq)]
#[allow(missing_docs)]
pub enum PemError {
#[fail(display = "mismatching BEGIN (\"{}\") and END (\"{}\") tags", _0, _1)]
MismatchedTags(String, String),
#[fail(display = "malformed framing")]
MalformedFraming,
#[fail(display = "missing BEGIN tag")]
MissingBeginTag,
#[fail(display = "missing END tag")]
MissingEndTag,
#[fail(display = "missing data")]
MissingData,
#[fail(display = "invalid data: {}", _0)]
InvalidData(#[fail(cause)] ::base64::DecodeError),
#[fail(display = "invalid utf-8 value: {}", _0)]
NotUtf8(#[fail(cause)] ::std::str::Utf8Error),
}