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

pub struct UnspecifiedParts;
Expand description

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

Converts a key with unspecified parts into this kind of key. Read more

Converts a key reference with unspecified parts into this kind of key reference. Read more

Converts a key bundle with unspecified parts into this kind of key bundle. Read more

Converts a key bundle reference with unspecified parts into this kind of key bundle reference. Read more

Converts a key amalgamation with unspecified parts into this kind of key amalgamation. Read more

Converts a key amalgamation reference with unspecified parts into this kind of key amalgamation reference. Read more

Indicates that secret key material should be considered when comparing or hashing this key. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.