[−][src]Enum pgp::types::SecretParams
A list of params that are used to represent the values of possibly encrypted key, from imports and exports.
Variants
Plain(PlainSecretParams)
Encrypted(EncryptedSecretParams)
Methods
impl SecretParams
[src]
pub fn is_encrypted(&self) -> bool
[src]
pub fn from_slice(data: &[u8], alg: PublicKeyAlgorithm) -> Result<Self>
[src]
pub fn string_to_key_id(&self) -> u8
[src]
pub fn compare_checksum(&self, other: Option<&[u8]>) -> Result<()>
[src]
pub fn checksum(&self) -> Option<Vec<u8>>
[src]
Trait Implementations
impl Serialize for SecretParams
[src]
fn to_writer<W: Write>(&self, writer: &mut W) -> Result<()>
[src]
fn to_bytes(&self) -> Result<Vec<u8>>
[src]
impl Clone for SecretParams
[src]
fn clone(&self) -> SecretParams
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Eq for SecretParams
[src]
impl PartialEq<SecretParams> for SecretParams
[src]
fn eq(&self, other: &SecretParams) -> bool
[src]
fn ne(&self, other: &SecretParams) -> bool
[src]
impl Debug for SecretParams
[src]
impl StructuralPartialEq for SecretParams
[src]
impl StructuralEq for SecretParams
[src]
impl Zeroize for SecretParams
[src]
Auto Trait Implementations
impl Send for SecretParams
impl Sync for SecretParams
impl Unpin for SecretParams
impl UnwindSafe for SecretParams
impl RefUnwindSafe for SecretParams
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<Z> Zeroize for Z where
Z: DefaultIsZeroes,
[src]
Z: DefaultIsZeroes,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,