[][src]Struct sequoia_openpgp::packet::key::UnspecifiedParts

pub struct UnspecifiedParts;

A marker that indicates that a Key's parts are unspecified.

Neither public key-specific nor secret key-specific operations are allowed on these types of keys. For instance, it is not possible to export a key with the UnspecifiedParts marker, because it is unclear how to treat any secret key material. To export such a key, you need to first change the marker to key::PublicParts or key::SecretParts.

This marker is used when it is necessary to erase the type. For instance, we need to do this when mixing Keys with different markers in the same collection. See Cert::keys for an example.

Refer to KeyParts for details.

Trait Implementations

impl Clone for UnspecifiedParts[src]

impl Copy for UnspecifiedParts[src]

impl Debug for UnspecifiedParts[src]

impl Eq for UnspecifiedParts[src]

impl Hash for UnspecifiedParts[src]

impl KeyParts for UnspecifiedParts[src]

impl PartialEq<UnspecifiedParts> for UnspecifiedParts[src]

impl StructuralEq for UnspecifiedParts[src]

impl StructuralPartialEq for UnspecifiedParts[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DynClone for T where
    T: Clone
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.