跳到主要内容

from_buf

搜索

函数 from_buf 

Source
pub fn from_buf(
    rd: &mut dyn BufRead,
) -> Result<Option<(SectionKind, Vec<u8>)>, Error>
展开描述

rd 中提取并解码下一个所支持的 PEM section。

  • Ok(None) is returned if there is no PEM section read from rd.
  • Underlying IO errors produce a Err(...)
  • Otherwise each decoded section is returned with a Ok(Some(...))