[][src]Struct sequoia_openpgp::packet::one_pass_sig::OnePassSig3

pub struct OnePassSig3 { /* fields omitted */ }

Holds a one-pass signature packet.

See Section 5.4 of RFC 4880 for details.

A note on equality

The last flag is represented as a u8 and is compared literally, not semantically.

Implementations

impl OnePassSig3[src]

pub fn new(typ: SignatureType) -> Self[src]

Returns a new Signature packet.

pub fn typ(&self) -> SignatureType[src]

Gets the signature type.

pub fn set_type(&mut self, t: SignatureType) -> SignatureType[src]

Sets the signature type.

pub fn pk_algo(&self) -> PublicKeyAlgorithm[src]

Gets the public key algorithm.

pub fn set_pk_algo(&mut self, algo: PublicKeyAlgorithm) -> PublicKeyAlgorithm[src]

Sets the public key algorithm.

pub fn hash_algo(&self) -> HashAlgorithm[src]

Gets the hash algorithm.

pub fn set_hash_algo(&mut self, algo: HashAlgorithm) -> HashAlgorithm[src]

Sets the hash algorithm.

pub fn issuer(&self) -> &KeyID[src]

Gets the issuer.

pub fn set_issuer(&mut self, issuer: KeyID) -> KeyID[src]

Sets the issuer.

pub fn last(&self) -> bool[src]

Gets the last flag.

pub fn set_last(&mut self, last: bool) -> bool[src]

Sets the last flag.

pub fn last_raw(&self) -> u8[src]

Gets the raw value of the last flag.

pub fn set_last_raw(&mut self, last: u8) -> u8[src]

Sets the raw value of the last flag.

Trait Implementations

impl Clone for OnePassSig3[src]

impl Debug for OnePassSig3[src]

impl Eq for OnePassSig3[src]

impl From<OnePassSig3> for OnePassSig[src]

impl From<OnePassSig3> for Packet[src]

impl Hash for OnePassSig3[src]

impl Marshal for OnePassSig3[src]

impl MarshalInto for OnePassSig3[src]

impl<'a> Parse<'a, OnePassSig3> for OnePassSig3[src]

impl PartialEq<OnePassSig3> for OnePassSig3[src]

impl StructuralEq for OnePassSig3[src]

impl StructuralPartialEq for OnePassSig3[src]

impl<'a> TryFrom<&'a Signature> for OnePassSig3[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DynClone for T where
    T: Clone
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.