Type Definition sequoia_openpgp::cert::amalgamation::key::ErasedKeyAmalgamation[][src]

type ErasedKeyAmalgamation<'a, P> = KeyAmalgamation<'a, P, UnspecifiedRole, bool>;

An amalgamation whose role is not known at compile time.

A specialized version of KeyAmalgamation.

Unlike a Key or a KeyBundle with an unspecified role, an ErasedKeyAmalgamation remembers its role; it is just not exposed to the type system. For details, see the module-level documentation.

Implementations

impl<'a, P> ErasedKeyAmalgamation<'a, P> where
    P: KeyParts
[src]

pub fn parts_into_public(self) -> ErasedKeyAmalgamation<'a, PublicParts>[src]

Changes the key’s parts tag to PublicParts.

pub fn parts_as_public(&'a self) -> &'a ErasedKeyAmalgamation<'a, PublicParts>[src]

Changes the key’s parts tag to PublicParts.

pub fn parts_into_secret(self) -> Result<ErasedKeyAmalgamation<'a, SecretParts>>[src]

Changes the key’s parts tag to SecretParts.

pub fn parts_as_secret(
    &'a self
) -> Result<&'a ErasedKeyAmalgamation<'a, SecretParts>>
[src]

Changes the key’s parts tag to SecretParts.

pub fn parts_into_unspecified(
    self
) -> ErasedKeyAmalgamation<'a, UnspecifiedParts>
[src]

Changes the key’s parts tag to UnspecifiedParts.

pub fn parts_as_unspecified(
    &'a self
) -> &ErasedKeyAmalgamation<'a, UnspecifiedParts>
[src]

Changes the key’s parts tag to UnspecifiedParts.

Trait Implementations

impl<'a> From<&'a KeyAmalgamation<'a, PublicParts, UnspecifiedRole, bool>> for &'a ErasedKeyAmalgamation<'a, UnspecifiedParts>[src]

fn from(p: &'a ErasedKeyAmalgamation<'a, PublicParts>) -> Self[src]

Performs the conversion.

impl<'a> From<&'a KeyAmalgamation<'a, SecretParts, UnspecifiedRole, bool>> for &'a ErasedKeyAmalgamation<'a, PublicParts>[src]

fn from(p: &'a ErasedKeyAmalgamation<'a, SecretParts>) -> Self[src]

Performs the conversion.

impl<'a> From<&'a KeyAmalgamation<'a, SecretParts, UnspecifiedRole, bool>> for &'a ErasedKeyAmalgamation<'a, UnspecifiedParts>[src]

fn from(p: &'a ErasedKeyAmalgamation<'a, SecretParts>) -> Self[src]

Performs the conversion.

impl<'a> From<&'a KeyAmalgamation<'a, UnspecifiedParts, UnspecifiedRole, bool>> for &'a ErasedKeyAmalgamation<'a, PublicParts>[src]

fn from(p: &'a ErasedKeyAmalgamation<'a, UnspecifiedParts>) -> Self[src]

Performs the conversion.

impl<'a, P: 'a + KeyParts> From<KeyAmalgamation<'a, P, PrimaryRole, ()>> for ErasedKeyAmalgamation<'a, P>[src]

fn from(ka: PrimaryKeyAmalgamation<'a, P>) -> Self[src]

Performs the conversion.

impl<'a, P: 'a + KeyParts> From<KeyAmalgamation<'a, P, SubordinateRole, ()>> for ErasedKeyAmalgamation<'a, P>[src]

fn from(ka: SubordinateKeyAmalgamation<'a, P>) -> Self[src]

Performs the conversion.

impl<'a> From<KeyAmalgamation<'a, PublicParts, PrimaryRole, ()>> for ErasedKeyAmalgamation<'a, UnspecifiedParts>[src]

fn from(ka: PrimaryKeyAmalgamation<'a, PublicParts>) -> Self[src]

Performs the conversion.

impl<'a> From<KeyAmalgamation<'a, PublicParts, SubordinateRole, ()>> for ErasedKeyAmalgamation<'a, UnspecifiedParts>[src]

fn from(ka: SubordinateKeyAmalgamation<'a, PublicParts>) -> Self[src]

Performs the conversion.

impl<'a> From<KeyAmalgamation<'a, PublicParts, UnspecifiedRole, bool>> for ErasedKeyAmalgamation<'a, UnspecifiedParts>[src]

fn from(p: ErasedKeyAmalgamation<'a, PublicParts>) -> Self[src]

Performs the conversion.

impl<'a> From<KeyAmalgamation<'a, SecretParts, PrimaryRole, ()>> for ErasedKeyAmalgamation<'a, PublicParts>[src]

fn from(ka: PrimaryKeyAmalgamation<'a, SecretParts>) -> Self[src]

Performs the conversion.

impl<'a> From<KeyAmalgamation<'a, SecretParts, PrimaryRole, ()>> for ErasedKeyAmalgamation<'a, UnspecifiedParts>[src]

fn from(ka: PrimaryKeyAmalgamation<'a, SecretParts>) -> Self[src]

Performs the conversion.

impl<'a> From<KeyAmalgamation<'a, SecretParts, SubordinateRole, ()>> for ErasedKeyAmalgamation<'a, PublicParts>[src]

fn from(ka: SubordinateKeyAmalgamation<'a, SecretParts>) -> Self[src]

Performs the conversion.

impl<'a> From<KeyAmalgamation<'a, SecretParts, SubordinateRole, ()>> for ErasedKeyAmalgamation<'a, UnspecifiedParts>[src]

fn from(ka: SubordinateKeyAmalgamation<'a, SecretParts>) -> Self[src]

Performs the conversion.

impl<'a> From<KeyAmalgamation<'a, SecretParts, UnspecifiedRole, bool>> for ErasedKeyAmalgamation<'a, PublicParts>[src]

fn from(p: ErasedKeyAmalgamation<'a, SecretParts>) -> Self[src]

Performs the conversion.

impl<'a> From<KeyAmalgamation<'a, SecretParts, UnspecifiedRole, bool>> for ErasedKeyAmalgamation<'a, UnspecifiedParts>[src]

fn from(p: ErasedKeyAmalgamation<'a, SecretParts>) -> Self[src]

Performs the conversion.

impl<'a> From<KeyAmalgamation<'a, UnspecifiedParts, PrimaryRole, ()>> for ErasedKeyAmalgamation<'a, PublicParts>[src]

fn from(ka: PrimaryKeyAmalgamation<'a, UnspecifiedParts>) -> Self[src]

Performs the conversion.

impl<'a> From<KeyAmalgamation<'a, UnspecifiedParts, SubordinateRole, ()>> for ErasedKeyAmalgamation<'a, PublicParts>[src]

fn from(ka: SubordinateKeyAmalgamation<'a, UnspecifiedParts>) -> Self[src]

Performs the conversion.

impl<'a> From<KeyAmalgamation<'a, UnspecifiedParts, UnspecifiedRole, bool>> for ErasedKeyAmalgamation<'a, PublicParts>[src]

fn from(p: ErasedKeyAmalgamation<'a, UnspecifiedParts>) -> Self[src]

Performs the conversion.

impl<'a, P> PrimaryKey<'a, P, UnspecifiedRole> for ErasedKeyAmalgamation<'a, P> where
    P: 'a + KeyParts
[src]

fn primary(&self) -> bool[src]

Returns whether the key amalgamation is a primary key amalgamation. Read more

impl<'a> TryFrom<&'a KeyAmalgamation<'a, PublicParts, UnspecifiedRole, bool>> for &'a ErasedKeyAmalgamation<'a, SecretParts>[src]

type Error = Error

The type returned in the event of a conversion error.

fn try_from(p: &'a ErasedKeyAmalgamation<'a, PublicParts>) -> Result<Self>[src]

Performs the conversion.

impl<'a> TryFrom<&'a KeyAmalgamation<'a, UnspecifiedParts, UnspecifiedRole, bool>> for &'a ErasedKeyAmalgamation<'a, SecretParts>[src]

type Error = Error

The type returned in the event of a conversion error.

fn try_from(p: &'a ErasedKeyAmalgamation<'a, UnspecifiedParts>) -> Result<Self>[src]

Performs the conversion.

impl<'a> TryFrom<KeyAmalgamation<'a, PublicParts, UnspecifiedRole, bool>> for ErasedKeyAmalgamation<'a, SecretParts>[src]

type Error = Error

The type returned in the event of a conversion error.

fn try_from(p: ErasedKeyAmalgamation<'a, PublicParts>) -> Result<Self>[src]

Performs the conversion.

impl<'a> TryFrom<KeyAmalgamation<'a, UnspecifiedParts, UnspecifiedRole, bool>> for ErasedKeyAmalgamation<'a, SecretParts>[src]

type Error = Error

The type returned in the event of a conversion error.

fn try_from(p: ErasedKeyAmalgamation<'a, UnspecifiedParts>) -> Result<Self>[src]

Performs the conversion.

impl<'a, P> ValidateAmalgamation<'a, Key<P, UnspecifiedRole>> for ErasedKeyAmalgamation<'a, P> where
    P: 'a + KeyParts
[src]

type V = ValidErasedKeyAmalgamation<'a, P>

The type returned by with_policy. Read more

fn with_policy<T>(self, policy: &'a dyn Policy, time: T) -> Result<Self::V> where
    T: Into<Option<SystemTime>>, 
[src]

Uses the specified Policy and reference time with the amalgamation. Read more