Enum sequoia_openpgp::packet::OnePassSig [−][src]
#[non_exhaustive] pub enum OnePassSig { V3(OnePassSig3), }
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)
V3(OnePassSig3)
OnePassSig packet version 3.
Implementations
impl OnePassSig
[src]
impl OnePassSig
[src]Methods from Deref<Target = OnePassSig3>
pub fn typ(&self) -> SignatureType
[src]
pub fn typ(&self) -> SignatureType
[src]Gets the signature type.
pub fn set_type(&mut self, t: SignatureType) -> SignatureType
[src]
pub fn set_type(&mut self, t: SignatureType) -> SignatureType
[src]Sets the signature type.
pub fn pk_algo(&self) -> PublicKeyAlgorithm
[src]
pub fn pk_algo(&self) -> PublicKeyAlgorithm
[src]Gets the public key algorithm.
pub fn set_pk_algo(&mut self, algo: PublicKeyAlgorithm) -> PublicKeyAlgorithm
[src]
pub fn set_pk_algo(&mut self, algo: PublicKeyAlgorithm) -> PublicKeyAlgorithm
[src]Sets the public key algorithm.
pub fn hash_algo(&self) -> HashAlgorithm
[src]
pub fn hash_algo(&self) -> HashAlgorithm
[src]Gets the hash algorithm.
pub fn set_hash_algo(&mut self, algo: HashAlgorithm) -> HashAlgorithm
[src]
pub fn set_hash_algo(&mut self, algo: HashAlgorithm) -> HashAlgorithm
[src]Sets the hash algorithm.
pub fn set_issuer(&mut self, issuer: KeyID) -> KeyID
[src]
pub fn set_issuer(&mut self, issuer: KeyID) -> KeyID
[src]Sets the issuer.
pub fn set_last_raw(&mut self, last: u8) -> u8
[src]
pub fn set_last_raw(&mut self, last: u8) -> u8
[src]Sets the raw value of the last flag.
Trait Implementations
impl Clone for OnePassSig
[src]
impl Clone for OnePassSig
[src]fn clone(&self) -> OnePassSig
[src]
fn clone(&self) -> OnePassSig
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for OnePassSig
[src]
impl Debug for OnePassSig
[src]impl Deref for OnePassSig
[src]
impl Deref for OnePassSig
[src]type Target = OnePassSig3
type Target = OnePassSig3
The resulting type after dereferencing.
impl DerefMut for OnePassSig
[src]
impl DerefMut for OnePassSig
[src]impl From<OnePassSig> for Packet
[src]
impl From<OnePassSig> for Packet
[src]fn from(s: OnePassSig) -> Self
[src]
fn from(s: OnePassSig) -> Self
[src]Performs the conversion.
impl From<OnePassSig3> for OnePassSig
[src]
impl From<OnePassSig3> for OnePassSig
[src]fn from(s: OnePassSig3) -> Self
[src]
fn from(s: OnePassSig3) -> Self
[src]Performs the conversion.
impl Hash for OnePassSig
[src]
impl Hash for OnePassSig
[src]impl IntoIterator for OnePassSig
[src]
impl IntoIterator for OnePassSig
[src]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?
impl Marshal for OnePassSig
[src]
impl Marshal for OnePassSig
[src]impl MarshalInto for OnePassSig
[src]
impl MarshalInto for OnePassSig
[src]impl<'a> Parse<'a, OnePassSig> for OnePassSig
[src]
impl<'a> Parse<'a, OnePassSig> for OnePassSig
[src]impl PartialEq<OnePassSig> for OnePassSig
[src]
impl PartialEq<OnePassSig> for OnePassSig
[src]fn eq(&self, other: &OnePassSig) -> bool
[src]
fn eq(&self, other: &OnePassSig) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &OnePassSig) -> bool
[src]
fn ne(&self, other: &OnePassSig) -> bool
[src]This method tests for !=
.
impl Eq for OnePassSig
[src]
impl StructuralEq for OnePassSig
[src]
impl StructuralPartialEq for OnePassSig
[src]
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
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more