pub struct SecretSubkey { /* private fields */ }
Implementations
sourceimpl SecretSubkey
impl SecretSubkey
pub fn new(key: SecretSubkey, keyflags: KeyFlags) -> Self
pub fn sign<F>(
self,
sec_key: &impl SecretKeyTrait,
key_pw: F
) -> Result<SignedSecretSubKey> where
F: FnOnce() -> String + Clone,
Trait Implementations
sourceimpl Clone for SecretSubkey
impl Clone for SecretSubkey
sourcefn clone(&self) -> SecretSubkey
fn clone(&self) -> SecretSubkey
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 SecretSubkey
impl Debug for SecretSubkey
sourceimpl KeyTrait for SecretSubkey
impl KeyTrait for SecretSubkey
fn fingerprint(&self) -> Vec<u8>
fn algorithm(&self) -> PublicKeyAlgorithm
fn is_signing_key(&self) -> bool
fn is_encryption_key(&self) -> bool
sourceimpl PartialEq<SecretSubkey> for SecretSubkey
impl PartialEq<SecretSubkey> for SecretSubkey
sourcefn eq(&self, other: &SecretSubkey) -> bool
fn eq(&self, other: &SecretSubkey) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &SecretSubkey) -> bool
fn ne(&self, other: &SecretSubkey) -> bool
This method tests for !=
.
impl Eq for SecretSubkey
impl StructuralEq for SecretSubkey
impl StructuralPartialEq for SecretSubkey
Auto Trait Implementations
impl RefUnwindSafe for SecretSubkey
impl Send for SecretSubkey
impl Sync for SecretSubkey
impl Unpin for SecretSubkey
impl UnwindSafe for SecretSubkey
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