[][src]Type Definition sequoia_openpgp::cert::bundle::KeyBundle

type KeyBundle<KeyPart, KeyRole> = ComponentBundle<Key<KeyPart, KeyRole>>;

A key (primary or subkey, public or private) and any associated signatures.

See the module level documentation.

Methods

impl<P, R> KeyBundle<P, R> where
    P: KeyParts,
    R: KeyRole
[src]

pub fn parts_into_public(self) -> KeyBundle<PublicParts, R>[src]

Changes the key's parts tag to PublicParts.

pub fn parts_as_public(&self) -> &KeyBundle<PublicParts, R>[src]

Changes the key's parts tag to PublicParts.

pub fn parts_into_secret(self) -> Result<KeyBundle<SecretParts, R>>[src]

Changes the key's parts tag to SecretParts.

pub fn parts_as_secret(&self) -> Result<&KeyBundle<SecretParts, R>>[src]

Changes the key's parts tag to SecretParts.

pub fn parts_into_unspecified(self) -> KeyBundle<UnspecifiedParts, R>[src]

Changes the key's parts tag to UnspecifiedParts.

pub fn parts_as_unspecified(&self) -> &KeyBundle<UnspecifiedParts, R>[src]

Changes the key's parts tag to UnspecifiedParts.

impl<P, R> KeyBundle<P, R> where
    P: KeyParts,
    R: KeyRole
[src]

pub fn role_into_primary(self) -> KeyBundle<P, PrimaryRole>[src]

Changes the key's role tag to PrimaryRole.

pub fn role_as_primary(&self) -> &KeyBundle<P, PrimaryRole>[src]

Changes the key's role tag to PrimaryRole.

pub fn role_into_subordinate(self) -> KeyBundle<P, SubordinateRole>[src]

Changes the key's role tag to SubordinateRole.

pub fn role_as_subordinate(&self) -> &KeyBundle<P, SubordinateRole>[src]

Changes the key's role tag to SubordinateRole.

pub fn role_into_unspecified(self) -> KeyBundle<P, UnspecifiedRole>[src]

Changes the key's role tag to UnspecifiedRole.

pub fn role_as_unspecified(&self) -> &KeyBundle<P, UnspecifiedRole>[src]

Changes the key's role tag to UnspecifiedRole.

Trait Implementations

impl<R> From<ComponentBundle<Key<PublicParts, R>>> for KeyBundle<UnspecifiedParts, R> where
    R: KeyRole
[src]

impl<R, '_, '_> From<&'_ ComponentBundle<Key<PublicParts, R>>> for &'_ KeyBundle<UnspecifiedParts, R> where
    R: KeyRole
[src]

impl<R> From<ComponentBundle<Key<SecretParts, R>>> for KeyBundle<PublicParts, R> where
    R: KeyRole
[src]

impl<R, '_, '_> From<&'_ ComponentBundle<Key<SecretParts, R>>> for &'_ KeyBundle<PublicParts, R> where
    R: KeyRole
[src]

impl<R> From<ComponentBundle<Key<SecretParts, R>>> for KeyBundle<UnspecifiedParts, R> where
    R: KeyRole
[src]

impl<R, '_, '_> From<&'_ ComponentBundle<Key<SecretParts, R>>> for &'_ KeyBundle<UnspecifiedParts, R> where
    R: KeyRole
[src]

impl<R> From<ComponentBundle<Key<UnspecifiedParts, R>>> for KeyBundle<PublicParts, R> where
    R: KeyRole
[src]

impl<R, '_, '_> From<&'_ ComponentBundle<Key<UnspecifiedParts, R>>> for &'_ KeyBundle<PublicParts, R> where
    R: KeyRole
[src]

impl<P> From<ComponentBundle<Key<P, PrimaryRole>>> for KeyBundle<P, SubordinateRole> where
    P: KeyParts
[src]

impl<P, '_, '_> From<&'_ ComponentBundle<Key<P, PrimaryRole>>> for &'_ KeyBundle<P, SubordinateRole> where
    P: KeyParts
[src]

impl<P> From<ComponentBundle<Key<P, PrimaryRole>>> for KeyBundle<P, UnspecifiedRole> where
    P: KeyParts
[src]

impl<P, '_, '_> From<&'_ ComponentBundle<Key<P, PrimaryRole>>> for &'_ KeyBundle<P, UnspecifiedRole> where
    P: KeyParts
[src]

impl<P> From<ComponentBundle<Key<P, SubordinateRole>>> for KeyBundle<P, PrimaryRole> where
    P: KeyParts
[src]

impl<P, '_, '_> From<&'_ ComponentBundle<Key<P, SubordinateRole>>> for &'_ KeyBundle<P, PrimaryRole> where
    P: KeyParts
[src]

impl<P> From<ComponentBundle<Key<P, SubordinateRole>>> for KeyBundle<P, UnspecifiedRole> where
    P: KeyParts
[src]

impl<P, '_, '_> From<&'_ ComponentBundle<Key<P, SubordinateRole>>> for &'_ KeyBundle<P, UnspecifiedRole> where
    P: KeyParts
[src]

impl<P> From<ComponentBundle<Key<P, UnspecifiedRole>>> for KeyBundle<P, PrimaryRole> where
    P: KeyParts
[src]

impl<P, '_, '_> From<&'_ ComponentBundle<Key<P, UnspecifiedRole>>> for &'_ KeyBundle<P, PrimaryRole> where
    P: KeyParts
[src]

impl<P> From<ComponentBundle<Key<P, UnspecifiedRole>>> for KeyBundle<P, SubordinateRole> where
    P: KeyParts
[src]

impl<P, '_, '_> From<&'_ ComponentBundle<Key<P, UnspecifiedRole>>> for &'_ KeyBundle<P, SubordinateRole> where
    P: KeyParts
[src]

impl From<ComponentBundle<Key<PublicParts, PrimaryRole>>> for KeyBundle<SecretParts, SubordinateRole>[src]

impl<'_, '_> From<&'_ ComponentBundle<Key<PublicParts, PrimaryRole>>> for &'_ KeyBundle<SecretParts, SubordinateRole>[src]

impl From<ComponentBundle<Key<PublicParts, PrimaryRole>>> for KeyBundle<SecretParts, UnspecifiedRole>[src]

impl<'_, '_> From<&'_ ComponentBundle<Key<PublicParts, PrimaryRole>>> for &'_ KeyBundle<SecretParts, UnspecifiedRole>[src]

impl From<ComponentBundle<Key<PublicParts, PrimaryRole>>> for KeyBundle<UnspecifiedParts, SubordinateRole>[src]

impl<'_, '_> From<&'_ ComponentBundle<Key<PublicParts, PrimaryRole>>> for &'_ KeyBundle<UnspecifiedParts, SubordinateRole>[src]

impl From<ComponentBundle<Key<PublicParts, PrimaryRole>>> for KeyBundle<UnspecifiedParts, UnspecifiedRole>[src]

impl<'_, '_> From<&'_ ComponentBundle<Key<PublicParts, PrimaryRole>>> for &'_ KeyBundle<UnspecifiedParts, UnspecifiedRole>[src]

impl From<ComponentBundle<Key<PublicParts, SubordinateRole>>> for KeyBundle<SecretParts, PrimaryRole>[src]

impl<'_, '_> From<&'_ ComponentBundle<Key<PublicParts, SubordinateRole>>> for &'_ KeyBundle<SecretParts, PrimaryRole>[src]

impl From<ComponentBundle<Key<PublicParts, SubordinateRole>>> for KeyBundle<SecretParts, UnspecifiedRole>[src]

impl<'_, '_> From<&'_ ComponentBundle<Key<PublicParts, SubordinateRole>>> for &'_ KeyBundle<SecretParts, UnspecifiedRole>[src]

impl From<ComponentBundle<Key<PublicParts, SubordinateRole>>> for KeyBundle<UnspecifiedParts, PrimaryRole>[src]

impl<'_, '_> From<&'_ ComponentBundle<Key<PublicParts, SubordinateRole>>> for &'_ KeyBundle<UnspecifiedParts, PrimaryRole>[src]

impl From<ComponentBundle<Key<PublicParts, SubordinateRole>>> for KeyBundle<UnspecifiedParts, UnspecifiedRole>[src]

impl<'_, '_> From<&'_ ComponentBundle<Key<PublicParts, SubordinateRole>>> for &'_ KeyBundle<UnspecifiedParts, UnspecifiedRole>[src]

impl From<ComponentBundle<Key<PublicParts, UnspecifiedRole>>> for KeyBundle<SecretParts, PrimaryRole>[src]

impl<'_, '_> From<&'_ ComponentBundle<Key<PublicParts, UnspecifiedRole>>> for &'_ KeyBundle<SecretParts, PrimaryRole>[src]

impl From<ComponentBundle<Key<PublicParts, UnspecifiedRole>>> for KeyBundle<SecretParts, SubordinateRole>[src]

impl<'_, '_> From<&'_ ComponentBundle<Key<PublicParts, UnspecifiedRole>>> for &'_ KeyBundle<SecretParts, SubordinateRole>[src]

impl From<ComponentBundle<Key<PublicParts, UnspecifiedRole>>> for KeyBundle<UnspecifiedParts, PrimaryRole>[src]

impl<'_, '_> From<&'_ ComponentBundle<Key<PublicParts, UnspecifiedRole>>> for &'_ KeyBundle<UnspecifiedParts, PrimaryRole>[src]

impl From<ComponentBundle<Key<PublicParts, UnspecifiedRole>>> for KeyBundle<UnspecifiedParts, SubordinateRole>[src]

impl<'_, '_> From<&'_ ComponentBundle<Key<PublicParts, UnspecifiedRole>>> for &'_ KeyBundle<UnspecifiedParts, SubordinateRole>[src]

impl From<ComponentBundle<Key<SecretParts, PrimaryRole>>> for KeyBundle<PublicParts, SubordinateRole>[src]

impl<'_, '_> From<&'_ ComponentBundle<Key<SecretParts, PrimaryRole>>> for &'_ KeyBundle<PublicParts, SubordinateRole>[src]

impl From<ComponentBundle<Key<SecretParts, PrimaryRole>>> for KeyBundle<PublicParts, UnspecifiedRole>[src]

impl<'_, '_> From<&'_ ComponentBundle<Key<SecretParts, PrimaryRole>>> for &'_ KeyBundle<PublicParts, UnspecifiedRole>[src]

impl From<ComponentBundle<Key<SecretParts, PrimaryRole>>> for KeyBundle<UnspecifiedParts, SubordinateRole>[src]

impl<'_, '_> From<&'_ ComponentBundle<Key<SecretParts, PrimaryRole>>> for &'_ KeyBundle<UnspecifiedParts, SubordinateRole>[src]

impl From<ComponentBundle<Key<SecretParts, PrimaryRole>>> for KeyBundle<UnspecifiedParts, UnspecifiedRole>[src]

impl<'_, '_> From<&'_ ComponentBundle<Key<SecretParts, PrimaryRole>>> for &'_ KeyBundle<UnspecifiedParts, UnspecifiedRole>[src]

impl From<ComponentBundle<Key<SecretParts, SubordinateRole>>> for KeyBundle<PublicParts, PrimaryRole>[src]

impl<'_, '_> From<&'_ ComponentBundle<Key<SecretParts, SubordinateRole>>> for &'_ KeyBundle<PublicParts, PrimaryRole>[src]

impl From<ComponentBundle<Key<SecretParts, SubordinateRole>>> for KeyBundle<PublicParts, UnspecifiedRole>[src]

impl<'_, '_> From<&'_ ComponentBundle<Key<SecretParts, SubordinateRole>>> for &'_ KeyBundle<PublicParts, UnspecifiedRole>[src]

impl From<ComponentBundle<Key<SecretParts, SubordinateRole>>> for KeyBundle<UnspecifiedParts, PrimaryRole>[src]

impl<'_, '_> From<&'_ ComponentBundle<Key<SecretParts, SubordinateRole>>> for &'_ KeyBundle<UnspecifiedParts, PrimaryRole>[src]

impl From<ComponentBundle<Key<SecretParts, SubordinateRole>>> for KeyBundle<UnspecifiedParts, UnspecifiedRole>[src]

impl<'_, '_> From<&'_ ComponentBundle<Key<SecretParts, SubordinateRole>>> for &'_ KeyBundle<UnspecifiedParts, UnspecifiedRole>[src]

impl From<ComponentBundle<Key<SecretParts, UnspecifiedRole>>> for KeyBundle<PublicParts, PrimaryRole>[src]

impl<'_, '_> From<&'_ ComponentBundle<Key<SecretParts, UnspecifiedRole>>> for &'_ KeyBundle<PublicParts, PrimaryRole>[src]

impl From<ComponentBundle<Key<SecretParts, UnspecifiedRole>>> for KeyBundle<PublicParts, SubordinateRole>[src]

impl<'_, '_> From<&'_ ComponentBundle<Key<SecretParts, UnspecifiedRole>>> for &'_ KeyBundle<PublicParts, SubordinateRole>[src]

impl From<ComponentBundle<Key<SecretParts, UnspecifiedRole>>> for KeyBundle<UnspecifiedParts, PrimaryRole>[src]

impl<'_, '_> From<&'_ ComponentBundle<Key<SecretParts, UnspecifiedRole>>> for &'_ KeyBundle<UnspecifiedParts, PrimaryRole>[src]

impl From<ComponentBundle<Key<SecretParts, UnspecifiedRole>>> for KeyBundle<UnspecifiedParts, SubordinateRole>[src]

impl<'_, '_> From<&'_ ComponentBundle<Key<SecretParts, UnspecifiedRole>>> for &'_ KeyBundle<UnspecifiedParts, SubordinateRole>[src]

impl From<ComponentBundle<Key<UnspecifiedParts, PrimaryRole>>> for KeyBundle<PublicParts, SubordinateRole>[src]

impl<'_, '_> From<&'_ ComponentBundle<Key<UnspecifiedParts, PrimaryRole>>> for &'_ KeyBundle<PublicParts, SubordinateRole>[src]

impl From<ComponentBundle<Key<UnspecifiedParts, PrimaryRole>>> for KeyBundle<PublicParts, UnspecifiedRole>[src]

impl<'_, '_> From<&'_ ComponentBundle<Key<UnspecifiedParts, PrimaryRole>>> for &'_ KeyBundle<PublicParts, UnspecifiedRole>[src]

impl From<ComponentBundle<Key<UnspecifiedParts, PrimaryRole>>> for KeyBundle<SecretParts, SubordinateRole>[src]

impl<'_, '_> From<&'_ ComponentBundle<Key<UnspecifiedParts, PrimaryRole>>> for &'_ KeyBundle<SecretParts, SubordinateRole>[src]

impl From<ComponentBundle<Key<UnspecifiedParts, PrimaryRole>>> for KeyBundle<SecretParts, UnspecifiedRole>[src]

impl<'_, '_> From<&'_ ComponentBundle<Key<UnspecifiedParts, PrimaryRole>>> for &'_ KeyBundle<SecretParts, UnspecifiedRole>[src]

impl From<ComponentBundle<Key<UnspecifiedParts, SubordinateRole>>> for KeyBundle<PublicParts, PrimaryRole>[src]

impl<'_, '_> From<&'_ ComponentBundle<Key<UnspecifiedParts, SubordinateRole>>> for &'_ KeyBundle<PublicParts, PrimaryRole>[src]

impl From<ComponentBundle<Key<UnspecifiedParts, SubordinateRole>>> for KeyBundle<PublicParts, UnspecifiedRole>[src]

impl<'_, '_> From<&'_ ComponentBundle<Key<UnspecifiedParts, SubordinateRole>>> for &'_ KeyBundle<PublicParts, UnspecifiedRole>[src]

impl From<ComponentBundle<Key<UnspecifiedParts, SubordinateRole>>> for KeyBundle<SecretParts, PrimaryRole>[src]

impl<'_, '_> From<&'_ ComponentBundle<Key<UnspecifiedParts, SubordinateRole>>> for &'_ KeyBundle<SecretParts, PrimaryRole>[src]

impl From<ComponentBundle<Key<UnspecifiedParts, SubordinateRole>>> for KeyBundle<SecretParts, UnspecifiedRole>[src]

impl<'_, '_> From<&'_ ComponentBundle<Key<UnspecifiedParts, SubordinateRole>>> for &'_ KeyBundle<SecretParts, UnspecifiedRole>[src]

impl From<ComponentBundle<Key<UnspecifiedParts, UnspecifiedRole>>> for KeyBundle<PublicParts, PrimaryRole>[src]

impl<'_, '_> From<&'_ ComponentBundle<Key<UnspecifiedParts, UnspecifiedRole>>> for &'_ KeyBundle<PublicParts, PrimaryRole>[src]

impl From<ComponentBundle<Key<UnspecifiedParts, UnspecifiedRole>>> for KeyBundle<PublicParts, SubordinateRole>[src]

impl<'_, '_> From<&'_ ComponentBundle<Key<UnspecifiedParts, UnspecifiedRole>>> for &'_ KeyBundle<PublicParts, SubordinateRole>[src]

impl From<ComponentBundle<Key<UnspecifiedParts, UnspecifiedRole>>> for KeyBundle<SecretParts, PrimaryRole>[src]

impl<'_, '_> From<&'_ ComponentBundle<Key<UnspecifiedParts, UnspecifiedRole>>> for &'_ KeyBundle<SecretParts, PrimaryRole>[src]

impl From<ComponentBundle<Key<UnspecifiedParts, UnspecifiedRole>>> for KeyBundle<SecretParts, SubordinateRole>[src]

impl<'_, '_> From<&'_ ComponentBundle<Key<UnspecifiedParts, UnspecifiedRole>>> for &'_ KeyBundle<SecretParts, SubordinateRole>[src]

impl<R> TryFrom<ComponentBundle<Key<PublicParts, R>>> for KeyBundle<SecretParts, R> where
    R: KeyRole
[src]

type Error = Error

The type returned in the event of a conversion error.

impl<R, '_, '_> TryFrom<&'_ ComponentBundle<Key<PublicParts, R>>> for &'_ KeyBundle<SecretParts, R> where
    R: KeyRole
[src]

type Error = Error

The type returned in the event of a conversion error.

impl<R> TryFrom<ComponentBundle<Key<UnspecifiedParts, R>>> for KeyBundle<SecretParts, R> where
    R: KeyRole
[src]

type Error = Error

The type returned in the event of a conversion error.

impl<R, '_, '_> TryFrom<&'_ ComponentBundle<Key<UnspecifiedParts, R>>> for &'_ KeyBundle<SecretParts, R> where
    R: KeyRole
[src]

type Error = Error

The type returned in the event of a conversion error.