Struct sequoia_openpgp::packet::key::UnspecifiedRole
source · [−]pub struct UnspecifiedRole;
Expand description
A marker that indicates the Key
’s role is unspecified.
Neither primary key-specific nor subkey-specific operations are
allowed. To perform those operations, the marker first has to be
changed to either key::PrimaryRole
or
key::SubordinateRole
, as appropriate.
Refer to KeyRole
for details.
Trait Implementations
sourceimpl Clone for UnspecifiedRole
impl Clone for UnspecifiedRole
sourcefn clone(&self) -> UnspecifiedRole
fn clone(&self) -> UnspecifiedRole
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for UnspecifiedRole
impl Debug for UnspecifiedRole
sourceimpl Hash for UnspecifiedRole
impl Hash for UnspecifiedRole
sourceimpl KeyRole for UnspecifiedRole
impl KeyRole for UnspecifiedRole
sourcefn convert_key<P: KeyParts>(key: Key<P, UnspecifiedRole>) -> Key<P, Self>
fn convert_key<P: KeyParts>(key: Key<P, UnspecifiedRole>) -> Key<P, Self>
Converts a key with an unspecified role into this kind of key. Read more
sourcefn convert_key_ref<P: KeyParts>(key: &Key<P, UnspecifiedRole>) -> &Key<P, Self>
fn convert_key_ref<P: KeyParts>(key: &Key<P, UnspecifiedRole>) -> &Key<P, Self>
Converts a key reference with an unspecified role into this kind of key reference. Read more
sourcefn convert_bundle<P: KeyParts>(
bundle: KeyBundle<P, UnspecifiedRole>
) -> KeyBundle<P, Self>
fn convert_bundle<P: KeyParts>(
bundle: KeyBundle<P, UnspecifiedRole>
) -> KeyBundle<P, Self>
Converts a key bundle with an unspecified role into this kind of key bundle. Read more
sourcefn convert_bundle_ref<P: KeyParts>(
bundle: &KeyBundle<P, UnspecifiedRole>
) -> &KeyBundle<P, Self>
fn convert_bundle_ref<P: KeyParts>(
bundle: &KeyBundle<P, UnspecifiedRole>
) -> &KeyBundle<P, Self>
Converts a key bundle reference with an unspecified role into this kind of key bundle reference. Read more
sourceimpl PartialEq<UnspecifiedRole> for UnspecifiedRole
impl PartialEq<UnspecifiedRole> for UnspecifiedRole
sourceimpl<'a, P> PrimaryKey<'a, P, UnspecifiedRole> for ErasedKeyAmalgamation<'a, P> where
P: 'a + KeyParts,
impl<'a, P> PrimaryKey<'a, P, UnspecifiedRole> for ErasedKeyAmalgamation<'a, P> where
P: 'a + KeyParts,
sourceimpl<'a, P> PrimaryKey<'a, P, UnspecifiedRole> for ValidErasedKeyAmalgamation<'a, P> where
P: 'a + KeyParts,
impl<'a, P> PrimaryKey<'a, P, UnspecifiedRole> for ValidErasedKeyAmalgamation<'a, P> where
P: 'a + KeyParts,
impl Copy for UnspecifiedRole
impl Eq for UnspecifiedRole
impl StructuralEq for UnspecifiedRole
impl StructuralPartialEq for UnspecifiedRole
Auto Trait Implementations
impl RefUnwindSafe for UnspecifiedRole
impl Send for UnspecifiedRole
impl Sync for UnspecifiedRole
impl Unpin for UnspecifiedRole
impl UnwindSafe for UnspecifiedRole
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more