Enum sequoia_openpgp::packet::OnePassSig [−][src]
#[non_exhaustive] pub enum OnePassSig { V3(OnePassSig3), }
Expand description
Holds a one-pass signature packet.
See Section 5.4 of RFC 4880 for details.
A OnePassSig
packet is not normally instantiated directly. In
most cases, you’ll create one as a side-effect of signing a
message using the streaming serializer, or parsing a signed
message using the PacketParser
.
Note: This enum cannot be exhaustively matched to allow future extensions.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
V3(OnePassSig3)
OnePassSig packet version 3.
Implementations
Methods from Deref<Target = OnePassSig3>
Gets the signature type.
Sets the signature type.
Gets the public key algorithm.
Sets the public key algorithm.
Gets the hash algorithm.
Sets the hash algorithm.
Sets the issuer.
Sets the raw value of the last flag.
Trait Implementations
type Target = OnePassSig3
type Target = OnePassSig3
The resulting type after dereferencing.
Performs the conversion.
Performs the conversion.
Implement IntoIterator
so that
cert::insert_packets(sig)
just works.
type Item = OnePassSig
type Item = OnePassSig
The type of the elements being iterated over.
type IntoIter = Once<OnePassSig>
type IntoIter = Once<OnePassSig>
Which kind of iterator are we turning this into?
Reads from the given reader.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for OnePassSig
impl Send for OnePassSig
impl Sync for OnePassSig
impl Unpin for OnePassSig
impl UnwindSafe for OnePassSig
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self