[][src]Trait sequoia_openpgp::packet::key::KeyParts

pub trait KeyParts: Debug {
    fn convert_key<R: KeyRole>(
        key: Key<UnspecifiedParts, R>
    ) -> Result<Key<Self, R>>
    where
        Self: Sized
;
fn convert_key_ref<R: KeyRole>(
        key: &Key<UnspecifiedParts, R>
    ) -> Result<&Key<Self, R>>
    where
        Self: Sized
;
fn convert_bundle<R: KeyRole>(
        bundle: KeyBundle<UnspecifiedParts, R>
    ) -> Result<KeyBundle<Self, R>>
    where
        Self: Sized
;
fn convert_bundle_ref<R: KeyRole>(
        bundle: &KeyBundle<UnspecifiedParts, R>
    ) -> Result<&KeyBundle<Self, R>>
    where
        Self: Sized
;
fn convert_valid_amalgamation<'a>(
        amalgamation: ValidKeyAmalgamation<'a, UnspecifiedParts>
    ) -> Result<ValidKeyAmalgamation<'a, Self>>
    where
        Self: Sized
;
fn convert_valid_amalgamation_ref<'a>(
        amalgamation: &'a ValidKeyAmalgamation<'a, UnspecifiedParts>
    ) -> Result<&'a ValidKeyAmalgamation<'a, Self>>
    where
        Self: Sized
; }

A marker trait that indicates whether a Key only contains public key material or may also contains secret key material.

Required methods

fn convert_key<R: KeyRole>(
    key: Key<UnspecifiedParts, R>
) -> Result<Key<Self, R>> where
    Self: Sized

Converts a key with unspecified parts into this kind of key.

fn convert_key_ref<R: KeyRole>(
    key: &Key<UnspecifiedParts, R>
) -> Result<&Key<Self, R>> where
    Self: Sized

Converts a reference to a key with unspecified parts into this kind of key reference.

fn convert_bundle<R: KeyRole>(
    bundle: KeyBundle<UnspecifiedParts, R>
) -> Result<KeyBundle<Self, R>> where
    Self: Sized

Converts a key bundle with unspecified parts into this kind of key bundle.

fn convert_bundle_ref<R: KeyRole>(
    bundle: &KeyBundle<UnspecifiedParts, R>
) -> Result<&KeyBundle<Self, R>> where
    Self: Sized

Converts a reference to a key bundle with unspecified parts into this kind of key bundle reference.

fn convert_valid_amalgamation<'a>(
    amalgamation: ValidKeyAmalgamation<'a, UnspecifiedParts>
) -> Result<ValidKeyAmalgamation<'a, Self>> where
    Self: Sized

Converts a key amalgamation with unspecified parts into this kind of key amalgamation.

fn convert_valid_amalgamation_ref<'a>(
    amalgamation: &'a ValidKeyAmalgamation<'a, UnspecifiedParts>
) -> Result<&'a ValidKeyAmalgamation<'a, Self>> where
    Self: Sized

Converts a reference to a key amalgamation with unspecified parts into this kind of key amalgamation reference.

Loading content...

Implementors

impl KeyParts for PublicParts[src]

impl KeyParts for SecretParts[src]

impl KeyParts for UnspecifiedParts[src]

Loading content...