Struct pgp::packet::OnePassSignature
source · pub struct OnePassSignature { /* private fields */ }
Expand description
One-Pass Signature Packet https://tools.ietf.org/html/rfc4880.html#section-5.4
Implementations§
source§impl OnePassSignature
impl OnePassSignature
sourcepub fn from_slice(packet_version: Version, input: &[u8]) -> Result<Self>
pub fn from_slice(packet_version: Version, input: &[u8]) -> Result<Self>
Parses a OnePassSignature
packet from the given slice.
pub fn from_details( typ: SignatureType, hash_algorithm: HashAlgorithm, pub_algorithm: PublicKeyAlgorithm, key_id: KeyId ) -> Self
pub fn packet_version(&self) -> Version
Trait Implementations§
source§impl Clone for OnePassSignature
impl Clone for OnePassSignature
source§fn clone(&self) -> OnePassSignature
fn clone(&self) -> OnePassSignature
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for OnePassSignature
impl Debug for OnePassSignature
source§impl From<OnePassSignature> for Packet
impl From<OnePassSignature> for Packet
source§fn from(other: OnePassSignature) -> Packet
fn from(other: OnePassSignature) -> Packet
Converts to this type from the input type.
source§impl PacketTrait for OnePassSignature
impl PacketTrait for OnePassSignature
source§impl PartialEq<OnePassSignature> for OnePassSignature
impl PartialEq<OnePassSignature> for OnePassSignature
source§fn eq(&self, other: &OnePassSignature) -> bool
fn eq(&self, other: &OnePassSignature) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.