Trait der::EncodePem

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

PEM encoding trait.

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

Required Methods§

source

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

Try to encode this type as PEM.

Object Safety§

This trait is not object safe.

Implementors§