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

pub trait KeyRole: Debug {
    fn convert_key<P: KeyParts>(key: Key<P, UnspecifiedRole>) -> Key<P, Self>
    where
        Self: Sized
;
fn convert_key_ref<P: KeyParts>(
        key: &Key<P, UnspecifiedRole>
    ) -> &Key<P, Self>
    where
        Self: Sized
;
fn convert_bundle<P: KeyParts>(
        bundle: KeyBundle<P, UnspecifiedRole>
    ) -> KeyBundle<P, Self>
    where
        Self: Sized
;
fn convert_bundle_ref<P: KeyParts>(
        bundle: &KeyBundle<P, UnspecifiedRole>
    ) -> &KeyBundle<P, Self>
    where
        Self: Sized
; }

A marker trait that indicates whether a Key is a primary key or subordinate key (i.e., a subkey).

Required methods

fn convert_key<P: KeyParts>(key: Key<P, UnspecifiedRole>) -> Key<P, Self> where
    Self: Sized

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

fn convert_key_ref<P: KeyParts>(key: &Key<P, UnspecifiedRole>) -> &Key<P, Self> where
    Self: Sized

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

fn convert_bundle<P: KeyParts>(
    bundle: KeyBundle<P, UnspecifiedRole>
) -> KeyBundle<P, Self> where
    Self: Sized

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

fn convert_bundle_ref<P: KeyParts>(
    bundle: &KeyBundle<P, UnspecifiedRole>
) -> &KeyBundle<P, Self> where
    Self: Sized

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

Loading content...

Implementors

impl KeyRole for PrimaryRole[src]

impl KeyRole for SubordinateRole[src]

impl KeyRole for UnspecifiedRole[src]

Loading content...