Struct pem_rfc7468::Decoder [−][src]
pub struct Decoder {
pub wrap_width: usize,
}
Expand description
PEM decoder.
This type provides a degree of configurability for how PEM is decoded.
Fields
wrap_width: usize
Number of characters at which to line-wrap Base64-encoded data
(default 64
).
Must be a multiple of 4
, or otherwise decoding operations will return
Error::Base64
.
Implementations
Decode a PEM document according to RFC 7468’s “Strict” grammar.
On success, writes the decoded document into the provided buffer, returning the decoded label and the portion of the provided buffer containing the decoded message.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Decoder
impl UnwindSafe for Decoder
Blanket Implementations
Mutably borrows from an owned value. Read more