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
sourceimpl 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
sourceimpl Clone for OnePassSignature
impl Clone for OnePassSignature
sourcefn clone(&self) -> OnePassSignature
fn clone(&self) -> OnePassSignature
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for OnePassSignature
impl Debug for OnePassSignature
sourceimpl From<OnePassSignature> for Packet
impl From<OnePassSignature> for Packet
sourcefn from(other: OnePassSignature) -> Packet
fn from(other: OnePassSignature) -> Packet
Converts to this type from the input type.
sourceimpl PacketTrait for OnePassSignature
impl PacketTrait for OnePassSignature
sourceimpl PartialEq<OnePassSignature> for OnePassSignature
impl PartialEq<OnePassSignature> for OnePassSignature
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &OnePassSignature) -> bool
fn ne(&self, other: &OnePassSignature) -> bool
This method tests for !=
.
sourceimpl Serialize for OnePassSignature
impl Serialize for OnePassSignature
sourceimpl TryFrom<Packet> for OnePassSignature
impl TryFrom<Packet> for OnePassSignature
impl Eq for OnePassSignature
impl StructuralEq for OnePassSignature
impl StructuralPartialEq for OnePassSignature
Auto Trait Implementations
impl RefUnwindSafe for OnePassSignature
impl Send for OnePassSignature
impl Sync for OnePassSignature
impl Unpin for OnePassSignature
impl UnwindSafe for OnePassSignature
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more