[][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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> DynClone for T where
    T: Clone

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

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.