Struct ed25519_dalek::pkcs8::spki::der::PemWriter
pub struct PemWriter<'w>(/* private fields */);
Available on crate feature
pkcs8
only.Expand description
Writer
type which outputs PEM-encoded data.
Implementations§
§impl<'w> PemWriter<'w>
impl<'w> PemWriter<'w>
pub fn new(
type_label: &'static str,
line_ending: LineEnding,
out: &'w mut [u8]
) -> Result<PemWriter<'w>, Error>
pub fn new( type_label: &'static str, line_ending: LineEnding, out: &'w mut [u8] ) -> Result<PemWriter<'w>, Error>
Create a new PEM writer which outputs into the provided buffer.
Uses the default 64-character line wrapping.
pub 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> 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