summaryrefslogtreecommitdiffstats
path: root/openpgp/src/packet_pile.rs
diff options
context:
space:
mode:
Diffstat (limited to 'openpgp/src/packet_pile.rs')
-rw-r--r--openpgp/src/packet_pile.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/openpgp/src/packet_pile.rs b/openpgp/src/packet_pile.rs
index f62eb6f6..1678c523 100644
--- a/openpgp/src/packet_pile.rs
+++ b/openpgp/src/packet_pile.rs
@@ -120,6 +120,17 @@ impl fmt::Debug for PacketPile {
}
impl<'a> Parse<'a, PacketPile> for PacketPile {
+ /// Deserializes the OpenPGP message stored in the file named by
+ /// `path`.
+ ///
+ /// See `from_reader` for more details and caveats.
+ fn from_buffered_reader<R>(reader: R) -> Result<PacketPile>
+ where
+ R: BufferedReader<Cookie> + 'a,
+ {
+ PacketPile::from_cookie_reader(reader.into_boxed())
+ }
+
/// Deserializes the OpenPGP message stored in a `std::io::Read`
/// object.
///