pub trait EncodePem: Encode + PemLabel {
    // Required method
    fn to_pem(&self, line_ending: LineEnding) -> Result<String, Error>;
}
Available on crate features pkcs8 and pem only.
Expand description

PEM encoding trait.

This trait is automatically impl’d for any type which impls both Encode and PemLabel.

Required Methods§

fn to_pem(&self, line_ending: LineEnding) -> Result<String, Error>

Try to encode this type as PEM.

Object Safety§

This trait is not object safe.

Implementors§

§

impl<T> EncodePem for T
where T: Encode + PemLabel,