Module pem

Source
Expand description

Low-level PEM decoding APIs.

These APIs allow decoding PEM format in an iterator, which means you can load multiple different types of PEM section from a file in a single pass.

Structsยง

ReadIter
Extract and return all PEM sections by reading rd.
SliceIter
Iterator over all PEM sections in a &[u8] slice.

Enumsยง

Error
Errors that may arise when parsing the contents of a PEM file
SectionKind
A single recognised section in a PEM file.

Traitsยง

PemObject
Items that can be decoded from PEM data.
PemObjectFilter ๐Ÿ”’

Functionsยง

from_buf
Extract and decode the next supported PEM section from rd.
from_slice ๐Ÿ”’
Extract and decode the next supported PEM section from input
read ๐Ÿ”’
read_until_newline ๐Ÿ”’