Struct der::PemWriter

source ·
pub struct PemWriter<'w>(_);
Available on crate feature pem only.
Expand description

Writer type which outputs PEM-encoded data.

Implementations§

Create a new PEM writer which outputs into the provided buffer.

Uses the default 64-character line wrapping.

Get the PEM label which will be used in the encapsulation boundaries for this document.

Finish encoding PEM, writing the post-encapsulation boundary.

On success, returns the total number of bytes written to the output buffer.

Trait Implementations§

Write the given DER-encoded bytes as output.
Write a single byte.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.