[−][src]Enum sequoia_openpgp::packet::OnePassSig
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
V3(OnePassSig3)
OnePassSig packet version 3.
Implementations
impl OnePassSig
[src]
Methods from Deref<Target = OnePassSig3>
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 OnePassSig
[src]
fn clone(&self) -> OnePassSig
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for OnePassSig
[src]
impl Deref for OnePassSig
[src]
type Target = OnePassSig3
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
impl DerefMut for OnePassSig
[src]
impl Eq for OnePassSig
[src]
impl From<OnePassSig> for Packet
[src]
fn from(s: OnePassSig) -> Self
[src]
impl From<OnePassSig3> for OnePassSig
[src]
fn from(s: OnePassSig3) -> Self
[src]
impl Hash for OnePassSig
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl IntoIterator for OnePassSig
[src]
Implement IntoIterator
so that
cert::merge_packets(sig)
just works.
type Item = OnePassSig
The type of the elements being iterated over.
type IntoIter = Once<OnePassSig>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
[src]
impl Marshal for OnePassSig
[src]
fn serialize(&self, o: &mut dyn Write) -> Result<()>
[src]
fn export(&self, o: &mut dyn Write) -> Result<()>
[src]
impl MarshalInto for OnePassSig
[src]
fn serialized_len(&self) -> usize
[src]
fn serialize_into(&self, buf: &mut [u8]) -> Result<usize>
[src]
fn to_vec(&self) -> Result<Vec<u8>>
[src]
fn export_into(&self, buf: &mut [u8]) -> Result<usize>
[src]
fn export_to_vec(&self) -> Result<Vec<u8>>
[src]
impl<'a> Parse<'a, OnePassSig> for OnePassSig
[src]
fn from_reader<R: 'a + Read>(reader: R) -> Result<Self>
[src]
fn from_file<P: AsRef<Path>>(path: P) -> Result<T>
[src]
fn from_bytes<D: AsRef<[u8]> + ?Sized>(data: &'a D) -> Result<T>
[src]
impl PartialEq<OnePassSig> for OnePassSig
[src]
fn eq(&self, other: &OnePassSig) -> bool
[src]
fn ne(&self, other: &OnePassSig) -> bool
[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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DynClone for T where
T: Clone,
[src]
T: Clone,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<I> IntoIterator for I where
I: Iterator,
[src]
I: Iterator,
type Item = <I as Iterator>::Item
The type of the elements being iterated over.
type IntoIter = I
Which kind of iterator are we turning this into?
fn into_iter(self) -> I
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,