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.
Trait Implementations§
Auto Trait Implementations§
impl<'w> Freeze for PemWriter<'w>
impl<'w> RefUnwindSafe for PemWriter<'w>
impl<'w> Send for PemWriter<'w>
impl<'w> Sync for PemWriter<'w>
impl<'w> Unpin for PemWriter<'w>
impl<'w> !UnwindSafe for PemWriter<'w>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more