pub fn parse_stream<F, R, T>(reader: R, parse_fn: F) -> Result<(T, Vec<u8>)>Expand description
Parse a signify file from a stream.
Reads from reader, parses the OpenBSD-compatible format
(comment line + base64 line), and decodes the object using parse_fn.
ยงErrors
Returns Error::Io if file cannot be read.
Returns Error::InvalidCommentHeader if header is missing or malformed.
Returns Error::InvalidSignatureUtf8 if base64 is invalid utf8.
Returns Error::Base64Decode if decoding fails.
Returns various errors from parse_fn.