[−][src]Struct sequoia_openpgp::cert::prelude::ValidKeyAmalgamation
A validated KeyAmalgamation
.
A ValidKeyAmalgamation
includes a policy and a reference time,
and is guaranteed to have a live binding signature at that time.
Implementations
impl<'a, P> ValidKeyAmalgamation<'a, P, PrimaryRole, ()> where
P: KeyParts,
[src]
P: KeyParts,
pub fn parts_into_public(self) -> ValidPrimaryKeyAmalgamation<'a, PublicParts>
[src]
Changes the key's parts tag to PublicParts
.
pub fn parts_as_public(
&'a self
) -> &'a ValidPrimaryKeyAmalgamation<'a, PublicParts>
[src]
&'a self
) -> &'a ValidPrimaryKeyAmalgamation<'a, PublicParts>
Changes the key's parts tag to PublicParts
.
pub fn parts_into_secret(
self
) -> Result<ValidPrimaryKeyAmalgamation<'a, SecretParts>>
[src]
self
) -> Result<ValidPrimaryKeyAmalgamation<'a, SecretParts>>
Changes the key's parts tag to SecretParts
.
pub fn parts_as_secret(
&'a self
) -> Result<&'a ValidPrimaryKeyAmalgamation<'a, SecretParts>>
[src]
&'a self
) -> Result<&'a ValidPrimaryKeyAmalgamation<'a, SecretParts>>
Changes the key's parts tag to SecretParts
.
pub fn parts_into_unspecified(
self
) -> ValidPrimaryKeyAmalgamation<'a, UnspecifiedParts>
[src]
self
) -> ValidPrimaryKeyAmalgamation<'a, UnspecifiedParts>
Changes the key's parts tag to UnspecifiedParts
.
pub fn parts_as_unspecified(
&'a self
) -> &ValidPrimaryKeyAmalgamation<'a, UnspecifiedParts>
[src]
&'a self
) -> &ValidPrimaryKeyAmalgamation<'a, UnspecifiedParts>
Changes the key's parts tag to UnspecifiedParts
.
impl<'a, P> ValidKeyAmalgamation<'a, P, SubordinateRole, ()> where
P: KeyParts,
[src]
P: KeyParts,
pub fn parts_into_public(
self
) -> ValidSubordinateKeyAmalgamation<'a, PublicParts>
[src]
self
) -> ValidSubordinateKeyAmalgamation<'a, PublicParts>
Changes the key's parts tag to PublicParts
.
pub fn parts_as_public(
&'a self
) -> &'a ValidSubordinateKeyAmalgamation<'a, PublicParts>
[src]
&'a self
) -> &'a ValidSubordinateKeyAmalgamation<'a, PublicParts>
Changes the key's parts tag to PublicParts
.
pub fn parts_into_secret(
self
) -> Result<ValidSubordinateKeyAmalgamation<'a, SecretParts>>
[src]
self
) -> Result<ValidSubordinateKeyAmalgamation<'a, SecretParts>>
Changes the key's parts tag to SecretParts
.
pub fn parts_as_secret(
&'a self
) -> Result<&'a ValidSubordinateKeyAmalgamation<'a, SecretParts>>
[src]
&'a self
) -> Result<&'a ValidSubordinateKeyAmalgamation<'a, SecretParts>>
Changes the key's parts tag to SecretParts
.
pub fn parts_into_unspecified(
self
) -> ValidSubordinateKeyAmalgamation<'a, UnspecifiedParts>
[src]
self
) -> ValidSubordinateKeyAmalgamation<'a, UnspecifiedParts>
Changes the key's parts tag to UnspecifiedParts
.
pub fn parts_as_unspecified(
&'a self
) -> &ValidSubordinateKeyAmalgamation<'a, UnspecifiedParts>
[src]
&'a self
) -> &ValidSubordinateKeyAmalgamation<'a, UnspecifiedParts>
Changes the key's parts tag to UnspecifiedParts
.
impl<'a, P> ValidKeyAmalgamation<'a, P, UnspecifiedRole, bool> where
P: KeyParts,
[src]
P: KeyParts,
pub fn parts_into_public(self) -> ValidErasedKeyAmalgamation<'a, PublicParts>
[src]
Changes the key's parts tag to PublicParts
.
pub fn parts_as_public(
&'a self
) -> &'a ValidErasedKeyAmalgamation<'a, PublicParts>
[src]
&'a self
) -> &'a ValidErasedKeyAmalgamation<'a, PublicParts>
Changes the key's parts tag to PublicParts
.
pub fn parts_into_secret(
self
) -> Result<ValidErasedKeyAmalgamation<'a, SecretParts>>
[src]
self
) -> Result<ValidErasedKeyAmalgamation<'a, SecretParts>>
Changes the key's parts tag to SecretParts
.
pub fn parts_as_secret(
&'a self
) -> Result<&'a ValidErasedKeyAmalgamation<'a, SecretParts>>
[src]
&'a self
) -> Result<&'a ValidErasedKeyAmalgamation<'a, SecretParts>>
Changes the key's parts tag to SecretParts
.
pub fn parts_into_unspecified(
self
) -> ValidErasedKeyAmalgamation<'a, UnspecifiedParts>
[src]
self
) -> ValidErasedKeyAmalgamation<'a, UnspecifiedParts>
Changes the key's parts tag to UnspecifiedParts
.
pub fn parts_as_unspecified(
&'a self
) -> &ValidErasedKeyAmalgamation<'a, UnspecifiedParts>
[src]
&'a self
) -> &ValidErasedKeyAmalgamation<'a, UnspecifiedParts>
Changes the key's parts tag to UnspecifiedParts
.
impl<'a, P, R, R2> ValidKeyAmalgamation<'a, P, R, R2> where
P: 'a + KeyParts,
R: 'a + KeyRole,
R2: Copy,
Self: ValidAmalgamation<'a, Key<P, R>>,
[src]
P: 'a + KeyParts,
R: 'a + KeyRole,
R2: Copy,
Self: ValidAmalgamation<'a, Key<P, R>>,
pub fn alive(&self) -> Result<()>
[src]
Returns whether the key (not just the binding signature!) is alive as of the amalgamtion's reference time.
Note: this does not return whether the certificate is valid.
Considers both the binding signature and the direct key signature. Information in the binding signature takes precedence over the direct key signature. See also Section 5.2.3.3 of RFC 4880.
pub fn into_key_amalgamation(self) -> KeyAmalgamation<'a, P, R, R2>
[src]
Returns the wrapped KeyAmalgamation
.
impl<'a, P, R, R2> ValidKeyAmalgamation<'a, P, R, R2> where
P: 'a + KeyParts,
R: 'a + KeyRole,
R2: Copy,
Self: PrimaryKey<'a, P, R>,
[src]
P: 'a + KeyParts,
R: 'a + KeyRole,
R2: Copy,
Self: PrimaryKey<'a, P, R>,
pub fn set_expiration_time(
&self,
primary_signer: &mut dyn Signer,
expiration: Option<SystemTime>
) -> Result<Vec<Packet>>
[src]
&self,
primary_signer: &mut dyn Signer,
expiration: Option<SystemTime>
) -> Result<Vec<Packet>>
Sets the key to expire at the given time.
A policy is needed, because the expiration is updated by adding a self-signature to the primary user id.
Methods from Deref<Target = KeyAmalgamation<'a, P, R, R2>>
pub fn parts_as_public(&'a self) -> &'a PrimaryKeyAmalgamation<'a, PublicParts>
[src]
Changes the key's parts tag to PublicParts
.
pub fn parts_as_secret(
&'a self
) -> Result<&'a PrimaryKeyAmalgamation<'a, SecretParts>>
[src]
&'a self
) -> Result<&'a PrimaryKeyAmalgamation<'a, SecretParts>>
Changes the key's parts tag to SecretParts
.
pub fn parts_as_unspecified(
&'a self
) -> &PrimaryKeyAmalgamation<'a, UnspecifiedParts>
[src]
&'a self
) -> &PrimaryKeyAmalgamation<'a, UnspecifiedParts>
Changes the key's parts tag to UnspecifiedParts
.
pub fn parts_as_public(
&'a self
) -> &'a SubordinateKeyAmalgamation<'a, PublicParts>
[src]
&'a self
) -> &'a SubordinateKeyAmalgamation<'a, PublicParts>
Changes the key's parts tag to PublicParts
.
pub fn parts_as_secret(
&'a self
) -> Result<&'a SubordinateKeyAmalgamation<'a, SecretParts>>
[src]
&'a self
) -> Result<&'a SubordinateKeyAmalgamation<'a, SecretParts>>
Changes the key's parts tag to SecretParts
.
pub fn parts_as_unspecified(
&'a self
) -> &SubordinateKeyAmalgamation<'a, UnspecifiedParts>
[src]
&'a self
) -> &SubordinateKeyAmalgamation<'a, UnspecifiedParts>
Changes the key's parts tag to UnspecifiedParts
.
pub fn parts_as_public(&'a self) -> &'a ErasedKeyAmalgamation<'a, PublicParts>
[src]
Changes the key's parts tag to PublicParts
.
pub fn parts_as_secret(
&'a self
) -> Result<&'a ErasedKeyAmalgamation<'a, SecretParts>>
[src]
&'a self
) -> Result<&'a ErasedKeyAmalgamation<'a, SecretParts>>
Changes the key's parts tag to SecretParts
.
pub fn parts_as_unspecified(
&'a self
) -> &ErasedKeyAmalgamation<'a, UnspecifiedParts>
[src]
&'a self
) -> &ErasedKeyAmalgamation<'a, UnspecifiedParts>
Changes the key's parts tag to UnspecifiedParts
.
pub fn component_amalgamation(&self) -> &ComponentAmalgamation<'a, Key<P, R>>
[src]
Returns the KeyAmalgamation
's ComponentAmalgamation
.
pub fn key(&self) -> &'a Key<P, R>
[src]
Returns the KeyAmalgamation
's key.
Normally, a type implementing KeyAmalgamation
eventually
derefs to a Key
, however, this method provides a more
accurate lifetime. See the documentation for
ComponentAmalgamation::component
for an explanation.
Trait Implementations
impl<'a, P: Clone, R: Clone, R2: Clone> Clone for ValidKeyAmalgamation<'a, P, R, R2> where
P: 'a + KeyParts,
R: 'a + KeyRole,
R2: Copy,
[src]
P: 'a + KeyParts,
R: 'a + KeyRole,
R2: Copy,
fn clone(&self) -> ValidKeyAmalgamation<'a, P, R, R2>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'a, P: Debug, R: Debug, R2: Debug> Debug for ValidKeyAmalgamation<'a, P, R, R2> where
P: 'a + KeyParts,
R: 'a + KeyRole,
R2: Copy,
[src]
P: 'a + KeyParts,
R: 'a + KeyRole,
R2: Copy,
impl<'a, P, R, R2> Deref for ValidKeyAmalgamation<'a, P, R, R2> where
P: 'a + KeyParts,
R: 'a + KeyRole,
R2: Copy,
[src]
P: 'a + KeyParts,
R: 'a + KeyRole,
R2: Copy,
type Target = KeyAmalgamation<'a, P, R, R2>
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
impl<'a> From<&'a ValidKeyAmalgamation<'a, PublicParts, PrimaryRole, ()>> for &'a ValidPrimaryKeyAmalgamation<'a, UnspecifiedParts>
[src]
fn from(p: &'a ValidPrimaryKeyAmalgamation<'a, PublicParts>) -> Self
[src]
impl<'a> From<&'a ValidKeyAmalgamation<'a, PublicParts, SubordinateRole, ()>> for &'a ValidSubordinateKeyAmalgamation<'a, UnspecifiedParts>
[src]
fn from(p: &'a ValidSubordinateKeyAmalgamation<'a, PublicParts>) -> Self
[src]
impl<'a> From<&'a ValidKeyAmalgamation<'a, PublicParts, UnspecifiedRole, bool>> for &'a ValidErasedKeyAmalgamation<'a, UnspecifiedParts>
[src]
fn from(p: &'a ValidErasedKeyAmalgamation<'a, PublicParts>) -> Self
[src]
impl<'a> From<&'a ValidKeyAmalgamation<'a, SecretParts, PrimaryRole, ()>> for &'a ValidPrimaryKeyAmalgamation<'a, PublicParts>
[src]
fn from(p: &'a ValidPrimaryKeyAmalgamation<'a, SecretParts>) -> Self
[src]
impl<'a> From<&'a ValidKeyAmalgamation<'a, SecretParts, PrimaryRole, ()>> for &'a ValidPrimaryKeyAmalgamation<'a, UnspecifiedParts>
[src]
fn from(p: &'a ValidPrimaryKeyAmalgamation<'a, SecretParts>) -> Self
[src]
impl<'a> From<&'a ValidKeyAmalgamation<'a, SecretParts, SubordinateRole, ()>> for &'a ValidSubordinateKeyAmalgamation<'a, PublicParts>
[src]
fn from(p: &'a ValidSubordinateKeyAmalgamation<'a, SecretParts>) -> Self
[src]
impl<'a> From<&'a ValidKeyAmalgamation<'a, SecretParts, SubordinateRole, ()>> for &'a ValidSubordinateKeyAmalgamation<'a, UnspecifiedParts>
[src]
fn from(p: &'a ValidSubordinateKeyAmalgamation<'a, SecretParts>) -> Self
[src]
impl<'a> From<&'a ValidKeyAmalgamation<'a, SecretParts, UnspecifiedRole, bool>> for &'a ValidErasedKeyAmalgamation<'a, PublicParts>
[src]
fn from(p: &'a ValidErasedKeyAmalgamation<'a, SecretParts>) -> Self
[src]
impl<'a> From<&'a ValidKeyAmalgamation<'a, SecretParts, UnspecifiedRole, bool>> for &'a ValidErasedKeyAmalgamation<'a, UnspecifiedParts>
[src]
fn from(p: &'a ValidErasedKeyAmalgamation<'a, SecretParts>) -> Self
[src]
impl<'a> From<&'a ValidKeyAmalgamation<'a, UnspecifiedParts, PrimaryRole, ()>> for &'a ValidPrimaryKeyAmalgamation<'a, PublicParts>
[src]
fn from(p: &'a ValidPrimaryKeyAmalgamation<'a, UnspecifiedParts>) -> Self
[src]
impl<'a> From<&'a ValidKeyAmalgamation<'a, UnspecifiedParts, SubordinateRole, ()>> for &'a ValidSubordinateKeyAmalgamation<'a, PublicParts>
[src]
fn from(p: &'a ValidSubordinateKeyAmalgamation<'a, UnspecifiedParts>) -> Self
[src]
impl<'a> From<&'a ValidKeyAmalgamation<'a, UnspecifiedParts, UnspecifiedRole, bool>> for &'a ValidErasedKeyAmalgamation<'a, PublicParts>
[src]
fn from(p: &'a ValidErasedKeyAmalgamation<'a, UnspecifiedParts>) -> Self
[src]
impl<'a, P: 'a + KeyParts> From<ValidKeyAmalgamation<'a, P, PrimaryRole, ()>> for ValidErasedKeyAmalgamation<'a, P>
[src]
fn from(vka: ValidPrimaryKeyAmalgamation<'a, P>) -> Self
[src]
impl<'a, P, R, R2> From<ValidKeyAmalgamation<'a, P, R, R2>> for KeyAmalgamation<'a, P, R, R2> where
P: 'a + KeyParts,
R: 'a + KeyRole,
R2: Copy,
[src]
P: 'a + KeyParts,
R: 'a + KeyRole,
R2: Copy,
fn from(vka: ValidKeyAmalgamation<'a, P, R, R2>) -> Self
[src]
impl<'a, P: 'a + KeyParts> From<ValidKeyAmalgamation<'a, P, SubordinateRole, ()>> for ValidErasedKeyAmalgamation<'a, P>
[src]
fn from(vka: ValidSubordinateKeyAmalgamation<'a, P>) -> Self
[src]
impl<'a> From<ValidKeyAmalgamation<'a, PublicParts, PrimaryRole, ()>> for ValidPrimaryKeyAmalgamation<'a, UnspecifiedParts>
[src]
fn from(p: ValidPrimaryKeyAmalgamation<'a, PublicParts>) -> Self
[src]
impl<'a> From<ValidKeyAmalgamation<'a, PublicParts, PrimaryRole, ()>> for ValidErasedKeyAmalgamation<'a, UnspecifiedParts>
[src]
fn from(vka: ValidPrimaryKeyAmalgamation<'a, PublicParts>) -> Self
[src]
impl<'a> From<ValidKeyAmalgamation<'a, PublicParts, SubordinateRole, ()>> for ValidSubordinateKeyAmalgamation<'a, UnspecifiedParts>
[src]
fn from(p: ValidSubordinateKeyAmalgamation<'a, PublicParts>) -> Self
[src]
impl<'a> From<ValidKeyAmalgamation<'a, PublicParts, SubordinateRole, ()>> for ValidErasedKeyAmalgamation<'a, UnspecifiedParts>
[src]
fn from(vka: ValidSubordinateKeyAmalgamation<'a, PublicParts>) -> Self
[src]
impl<'a> From<ValidKeyAmalgamation<'a, PublicParts, UnspecifiedRole, bool>> for ValidErasedKeyAmalgamation<'a, UnspecifiedParts>
[src]
fn from(p: ValidErasedKeyAmalgamation<'a, PublicParts>) -> Self
[src]
impl<'a> From<ValidKeyAmalgamation<'a, SecretParts, PrimaryRole, ()>> for ValidPrimaryKeyAmalgamation<'a, PublicParts>
[src]
fn from(p: ValidPrimaryKeyAmalgamation<'a, SecretParts>) -> Self
[src]
impl<'a> From<ValidKeyAmalgamation<'a, SecretParts, PrimaryRole, ()>> for ValidPrimaryKeyAmalgamation<'a, UnspecifiedParts>
[src]
fn from(p: ValidPrimaryKeyAmalgamation<'a, SecretParts>) -> Self
[src]
impl<'a> From<ValidKeyAmalgamation<'a, SecretParts, PrimaryRole, ()>> for ValidErasedKeyAmalgamation<'a, PublicParts>
[src]
fn from(vka: ValidPrimaryKeyAmalgamation<'a, SecretParts>) -> Self
[src]
impl<'a> From<ValidKeyAmalgamation<'a, SecretParts, PrimaryRole, ()>> for ValidErasedKeyAmalgamation<'a, UnspecifiedParts>
[src]
fn from(vka: ValidPrimaryKeyAmalgamation<'a, SecretParts>) -> Self
[src]
impl<'a> From<ValidKeyAmalgamation<'a, SecretParts, SubordinateRole, ()>> for ValidSubordinateKeyAmalgamation<'a, PublicParts>
[src]
fn from(p: ValidSubordinateKeyAmalgamation<'a, SecretParts>) -> Self
[src]
impl<'a> From<ValidKeyAmalgamation<'a, SecretParts, SubordinateRole, ()>> for ValidSubordinateKeyAmalgamation<'a, UnspecifiedParts>
[src]
fn from(p: ValidSubordinateKeyAmalgamation<'a, SecretParts>) -> Self
[src]
impl<'a> From<ValidKeyAmalgamation<'a, SecretParts, SubordinateRole, ()>> for ValidErasedKeyAmalgamation<'a, PublicParts>
[src]
fn from(vka: ValidSubordinateKeyAmalgamation<'a, SecretParts>) -> Self
[src]
impl<'a> From<ValidKeyAmalgamation<'a, SecretParts, SubordinateRole, ()>> for ValidErasedKeyAmalgamation<'a, UnspecifiedParts>
[src]
fn from(vka: ValidSubordinateKeyAmalgamation<'a, SecretParts>) -> Self
[src]
impl<'a> From<ValidKeyAmalgamation<'a, SecretParts, UnspecifiedRole, bool>> for ValidErasedKeyAmalgamation<'a, PublicParts>
[src]
fn from(p: ValidErasedKeyAmalgamation<'a, SecretParts>) -> Self
[src]
impl<'a> From<ValidKeyAmalgamation<'a, SecretParts, UnspecifiedRole, bool>> for ValidErasedKeyAmalgamation<'a, UnspecifiedParts>
[src]
fn from(p: ValidErasedKeyAmalgamation<'a, SecretParts>) -> Self
[src]
impl<'a> From<ValidKeyAmalgamation<'a, UnspecifiedParts, PrimaryRole, ()>> for ValidPrimaryKeyAmalgamation<'a, PublicParts>
[src]
fn from(p: ValidPrimaryKeyAmalgamation<'a, UnspecifiedParts>) -> Self
[src]
impl<'a> From<ValidKeyAmalgamation<'a, UnspecifiedParts, PrimaryRole, ()>> for ValidErasedKeyAmalgamation<'a, PublicParts>
[src]
fn from(vka: ValidPrimaryKeyAmalgamation<'a, UnspecifiedParts>) -> Self
[src]
impl<'a> From<ValidKeyAmalgamation<'a, UnspecifiedParts, SubordinateRole, ()>> for ValidSubordinateKeyAmalgamation<'a, PublicParts>
[src]
fn from(p: ValidSubordinateKeyAmalgamation<'a, UnspecifiedParts>) -> Self
[src]
impl<'a> From<ValidKeyAmalgamation<'a, UnspecifiedParts, SubordinateRole, ()>> for ValidErasedKeyAmalgamation<'a, PublicParts>
[src]
fn from(vka: ValidSubordinateKeyAmalgamation<'a, UnspecifiedParts>) -> Self
[src]
impl<'a> From<ValidKeyAmalgamation<'a, UnspecifiedParts, UnspecifiedRole, bool>> for ValidErasedKeyAmalgamation<'a, PublicParts>
[src]
fn from(p: ValidErasedKeyAmalgamation<'a, UnspecifiedParts>) -> Self
[src]
impl<'a> TryFrom<&'a ValidKeyAmalgamation<'a, PublicParts, PrimaryRole, ()>> for &'a ValidPrimaryKeyAmalgamation<'a, SecretParts>
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(p: &'a ValidPrimaryKeyAmalgamation<'a, PublicParts>) -> Result<Self>
[src]
impl<'a> TryFrom<&'a ValidKeyAmalgamation<'a, PublicParts, SubordinateRole, ()>> for &'a ValidSubordinateKeyAmalgamation<'a, SecretParts>
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(
p: &'a ValidSubordinateKeyAmalgamation<'a, PublicParts>
) -> Result<Self>
[src]
p: &'a ValidSubordinateKeyAmalgamation<'a, PublicParts>
) -> Result<Self>
impl<'a> TryFrom<&'a ValidKeyAmalgamation<'a, PublicParts, UnspecifiedRole, bool>> for &'a ValidErasedKeyAmalgamation<'a, SecretParts>
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(p: &'a ValidErasedKeyAmalgamation<'a, PublicParts>) -> Result<Self>
[src]
impl<'a> TryFrom<&'a ValidKeyAmalgamation<'a, UnspecifiedParts, PrimaryRole, ()>> for &'a ValidPrimaryKeyAmalgamation<'a, SecretParts>
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(
p: &'a ValidPrimaryKeyAmalgamation<'a, UnspecifiedParts>
) -> Result<Self>
[src]
p: &'a ValidPrimaryKeyAmalgamation<'a, UnspecifiedParts>
) -> Result<Self>
impl<'a> TryFrom<&'a ValidKeyAmalgamation<'a, UnspecifiedParts, SubordinateRole, ()>> for &'a ValidSubordinateKeyAmalgamation<'a, SecretParts>
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(
p: &'a ValidSubordinateKeyAmalgamation<'a, UnspecifiedParts>
) -> Result<Self>
[src]
p: &'a ValidSubordinateKeyAmalgamation<'a, UnspecifiedParts>
) -> Result<Self>
impl<'a> TryFrom<&'a ValidKeyAmalgamation<'a, UnspecifiedParts, UnspecifiedRole, bool>> for &'a ValidErasedKeyAmalgamation<'a, SecretParts>
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(
p: &'a ValidErasedKeyAmalgamation<'a, UnspecifiedParts>
) -> Result<Self>
[src]
p: &'a ValidErasedKeyAmalgamation<'a, UnspecifiedParts>
) -> Result<Self>
impl<'a, P, P2> TryFrom<ValidKeyAmalgamation<'a, P, UnspecifiedRole, bool>> for ValidPrimaryKeyAmalgamation<'a, P2> where
P: 'a + KeyParts,
P2: 'a + KeyParts,
[src]
P: 'a + KeyParts,
P2: 'a + KeyParts,
type Error = Error
The type returned in the event of a conversion error.
fn try_from(vka: ValidErasedKeyAmalgamation<'a, P>) -> Result<Self>
[src]
impl<'a, P, P2> TryFrom<ValidKeyAmalgamation<'a, P, UnspecifiedRole, bool>> for ValidSubordinateKeyAmalgamation<'a, P2> where
P: 'a + KeyParts,
P2: 'a + KeyParts,
[src]
P: 'a + KeyParts,
P2: 'a + KeyParts,
type Error = Error
The type returned in the event of a conversion error.
fn try_from(vka: ValidErasedKeyAmalgamation<'a, P>) -> Result<Self>
[src]
impl<'a> TryFrom<ValidKeyAmalgamation<'a, PublicParts, PrimaryRole, ()>> for ValidPrimaryKeyAmalgamation<'a, SecretParts>
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(p: ValidPrimaryKeyAmalgamation<'a, PublicParts>) -> Result<Self>
[src]
impl<'a> TryFrom<ValidKeyAmalgamation<'a, PublicParts, SubordinateRole, ()>> for ValidSubordinateKeyAmalgamation<'a, SecretParts>
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(p: ValidSubordinateKeyAmalgamation<'a, PublicParts>) -> Result<Self>
[src]
impl<'a> TryFrom<ValidKeyAmalgamation<'a, PublicParts, UnspecifiedRole, bool>> for ValidErasedKeyAmalgamation<'a, SecretParts>
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(p: ValidErasedKeyAmalgamation<'a, PublicParts>) -> Result<Self>
[src]
impl<'a> TryFrom<ValidKeyAmalgamation<'a, UnspecifiedParts, PrimaryRole, ()>> for ValidPrimaryKeyAmalgamation<'a, SecretParts>
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(
p: ValidPrimaryKeyAmalgamation<'a, UnspecifiedParts>
) -> Result<Self>
[src]
p: ValidPrimaryKeyAmalgamation<'a, UnspecifiedParts>
) -> Result<Self>
impl<'a> TryFrom<ValidKeyAmalgamation<'a, UnspecifiedParts, SubordinateRole, ()>> for ValidSubordinateKeyAmalgamation<'a, SecretParts>
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(
p: ValidSubordinateKeyAmalgamation<'a, UnspecifiedParts>
) -> Result<Self>
[src]
p: ValidSubordinateKeyAmalgamation<'a, UnspecifiedParts>
) -> Result<Self>
impl<'a> TryFrom<ValidKeyAmalgamation<'a, UnspecifiedParts, UnspecifiedRole, bool>> for ValidErasedKeyAmalgamation<'a, SecretParts>
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(p: ValidErasedKeyAmalgamation<'a, UnspecifiedParts>) -> Result<Self>
[src]
impl<'a, P, R, R2> ValidAmalgamation<'a, Key<P, R>> for ValidKeyAmalgamation<'a, P, R, R2> where
P: 'a + KeyParts,
R: 'a + KeyRole,
R2: Copy,
Self: PrimaryKey<'a, P, R>,
[src]
P: 'a + KeyParts,
R: 'a + KeyRole,
R2: Copy,
Self: PrimaryKey<'a, P, R>,
fn cert(&self) -> &ValidCert<'a>
[src]
fn time(&self) -> SystemTime
[src]
fn policy(&self) -> &'a dyn Policy
[src]
fn binding_signature(&self) -> &'a Signature
[src]
fn direct_key_signature(&self) -> Result<&'a Signature>
[src]
fn revoked(&self) -> RevocationStatus<'a>
[src]
fn key_expiration_time(&self) -> Option<SystemTime>
[src]
fn cert_revoked(&self) -> RevocationStatus<'a>
[src]
fn cert_alive(&self) -> Result<()>
[src]
fn map<F: Fn(&'a Signature) -> Option<T>, T>(&self, f: F) -> Option<T>
[src]
fn key_flags(&self) -> Option<KeyFlags>
[src]
fn has_any_key_flag<F>(&self, flags: F) -> bool where
F: Borrow<KeyFlags>,
[src]
F: Borrow<KeyFlags>,
fn for_certification(&self) -> bool
[src]
fn for_signing(&self) -> bool
[src]
fn for_authentication(&self) -> bool
[src]
fn for_storage_encryption(&self) -> bool
[src]
fn for_transport_encryption(&self) -> bool
[src]
fn key_validity_period(&self) -> Option<Duration>
[src]
fn revocation_keys(&self) -> Box<dyn Iterator<Item = &'a RevocationKey> + 'a>
[src]
Auto Trait Implementations
impl<'a, P, R, R2> !RefUnwindSafe for ValidKeyAmalgamation<'a, P, R, R2>
impl<'a, P, R, R2> !Send for ValidKeyAmalgamation<'a, P, R, R2>
impl<'a, P, R, R2> !Sync for ValidKeyAmalgamation<'a, P, R, R2>
impl<'a, P, R, R2> Unpin for ValidKeyAmalgamation<'a, P, R, R2> where
R2: Unpin,
R2: Unpin,
impl<'a, P, R, R2> !UnwindSafe for ValidKeyAmalgamation<'a, P, R, R2>
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,