pub struct PemWriter<'w>(/* private fields */);
Expand description
Writer
type which outputs PEM-encoded data.
Implementations§
source§impl<'w> PemWriter<'w>
impl<'w> PemWriter<'w>
sourcepub fn new(
type_label: &'static str,
line_ending: LineEnding,
out: &'w mut [u8],
) -> Result<Self>
pub fn new( type_label: &'static str, line_ending: LineEnding, out: &'w mut [u8], ) -> Result<Self>
Create a new PEM writer which outputs into the provided buffer.
Uses the default 64-character line wrapping.
sourcepub fn type_label(&self) -> &'static str
pub fn type_label(&self) -> &'static str
Get the PEM label which will be used in the encapsulation boundaries for this document.