pub struct PemWriter<'w>(/* private fields */);
Available on crate feature
pem
only.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
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 88 bytes