Function read_one_from_slice
pub fn read_one_from_slice(input: &[u8]) -> Result<Option<(Item, &[u8])>, Error>Available on (crate features
rustls or boring or acme) and crate feature rustls only.Expand description
Extract and decode the next PEM section from input
Ok(None)is returned if there is no PEM section to read frominput- Syntax errors and decoding errors produce a
Err(...) - Otherwise each decoded section is returned with a
Ok(Some((Item::..., remainder)))whereremainderis the part of theinputthat follows the returned section