diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2020-10-20 12:28:28 +0200 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2020-10-20 16:09:58 +0200 |
commit | f3461ce5b2161bb74c3b1b69d13f4f8a3bd7792e (patch) | |
tree | ad45900e9c342397db4d104df3e09a236a4ef060 /openpgp/src | |
parent | 0528fc44237d45119b52cf6ca3f475a661085c1e (diff) |
openpgp: Make struct Cookie public.
Diffstat (limited to 'openpgp/src')
-rw-r--r-- | openpgp/src/parse.rs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/openpgp/src/parse.rs b/openpgp/src/parse.rs index 1422f37b..d5cad160 100644 --- a/openpgp/src/parse.rs +++ b/openpgp/src/parse.rs @@ -613,9 +613,13 @@ enum Hashing { Disabled, } - +/// Private state used by the `PacketParser`. +/// +/// This is not intended to be used. It is possible to explicitly +/// create `Cookie` instances using its `Default` implementation for +/// low-level interfacing with parsing code. #[derive(Debug)] -pub(crate) struct Cookie { +pub struct Cookie { // `BufferedReader`s managed by a `PacketParser` have // `Some(level)`; an external `BufferedReader` (i.e., the // underlying `BufferedReader`) has no level. |