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§
source§impl Clone for UnspecifiedRole
impl Clone for UnspecifiedRole
source§fn clone(&self) -> UnspecifiedRole
fn clone(&self) -> UnspecifiedRole
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for UnspecifiedRole
impl Debug for UnspecifiedRole
source§impl Hash for UnspecifiedRole
impl Hash for UnspecifiedRole
source§impl KeyRole for UnspecifiedRole
impl KeyRole for UnspecifiedRole
source§fn 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
source§fn 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
source§fn 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
source§fn 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
source§impl PartialEq for UnspecifiedRole
impl PartialEq for UnspecifiedRole
source§fn eq(&self, other: &UnspecifiedRole) -> bool
fn eq(&self, other: &UnspecifiedRole) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'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,
source§impl<'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 StructuralPartialEq for UnspecifiedRole
Auto Trait Implementations§
impl Freeze for UnspecifiedRole
impl RefUnwindSafe for UnspecifiedRole
impl Send for UnspecifiedRole
impl Sync for UnspecifiedRole
impl Unpin for UnspecifiedRole
impl UnwindSafe for UnspecifiedRole
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)