[−][src]Trait sequoia_openpgp::packet::key::KeyRole
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,
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,
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,
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,
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.
Implementors
impl KeyRole for PrimaryRole
[src]
fn convert_key<P: KeyParts>(key: Key<P, UnspecifiedRole>) -> Key<P, Self>
[src]
fn convert_key_ref<P: KeyParts>(key: &Key<P, UnspecifiedRole>) -> &Key<P, Self>
[src]
fn convert_bundle<P: KeyParts>(
bundle: KeyBundle<P, UnspecifiedRole>
) -> KeyBundle<P, Self>
[src]
bundle: KeyBundle<P, UnspecifiedRole>
) -> KeyBundle<P, Self>
fn convert_bundle_ref<P: KeyParts>(
bundle: &KeyBundle<P, UnspecifiedRole>
) -> &KeyBundle<P, Self>
[src]
bundle: &KeyBundle<P, UnspecifiedRole>
) -> &KeyBundle<P, Self>
impl KeyRole for SubordinateRole
[src]
fn convert_key<P: KeyParts>(key: Key<P, UnspecifiedRole>) -> Key<P, Self>
[src]
fn convert_key_ref<P: KeyParts>(key: &Key<P, UnspecifiedRole>) -> &Key<P, Self>
[src]
fn convert_bundle<P: KeyParts>(
bundle: KeyBundle<P, UnspecifiedRole>
) -> KeyBundle<P, Self>
[src]
bundle: KeyBundle<P, UnspecifiedRole>
) -> KeyBundle<P, Self>
fn convert_bundle_ref<P: KeyParts>(
bundle: &KeyBundle<P, UnspecifiedRole>
) -> &KeyBundle<P, Self>
[src]
bundle: &KeyBundle<P, UnspecifiedRole>
) -> &KeyBundle<P, Self>
impl KeyRole for UnspecifiedRole
[src]
fn convert_key<P: KeyParts>(key: Key<P, UnspecifiedRole>) -> Key<P, Self>
[src]
fn convert_key_ref<P: KeyParts>(key: &Key<P, UnspecifiedRole>) -> &Key<P, Self>
[src]
fn convert_bundle<P: KeyParts>(
bundle: KeyBundle<P, UnspecifiedRole>
) -> KeyBundle<P, Self>
[src]
bundle: KeyBundle<P, UnspecifiedRole>
) -> KeyBundle<P, Self>
fn convert_bundle_ref<P: KeyParts>(
bundle: &KeyBundle<P, UnspecifiedRole>
) -> &KeyBundle<P, Self>
[src]
bundle: &KeyBundle<P, UnspecifiedRole>
) -> &KeyBundle<P, Self>