跳到主要内容

Module pem

搜索

Module pem 

Source
展开描述

底层 PEM 解码 API。

这些 API 允许以迭代器方式解码 PEM 格式, 这意味着你可以单次扫描文件从中加载多种不同类型的 PEM section。

结构体§

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

枚举§

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

特性§

PemObject
Items that can be decoded from PEM data.

函数§

from_buf
Extract and decode the next supported PEM section from rd.