Struct sequoia_openpgp::cert::amalgamation::key::KeyAmalgamation [−][src]
pub struct KeyAmalgamation<'a, P, R, R2> where
P: 'a + KeyParts,
R: 'a + KeyRole, { /* fields omitted */ }
Expand description
A key, and its associated data, and useful methods.
A KeyAmalgamation
is like a ComponentAmalgamation
, but
specialized for keys. Due to the requirement to keep track of the
key’s role when it is erased (see the module’s documentation for
more details), this is a different data structure rather than a
specialized type alias.
Generally, you won’t use this type directly, but instead use
PrimaryKeyAmalgamation
, SubordinateKeyAmalgamation
, or
ErasedKeyAmalgamation
.
A KeyAmalgamation
is returned by Cert::primary_key
, and
Cert::keys
.
KeyAmalgamation
implements ValidateAmalgamation
, which
allows you to turn a KeyAmalgamation
into a
ValidKeyAmalgamation
using KeyAmalgamation::with_policy
.
Examples
Iterating over all keys:
for ka in cert.keys() { let ka: ErasedKeyAmalgamation<_> = ka; }
Getting the primary key:
let ka: PrimaryKeyAmalgamation<_> = cert.primary_key();
Iterating over just the subkeys:
// We can skip the primary key (it's always first): for ka in cert.keys().skip(1) { let ka: ErasedKeyAmalgamation<_> = ka; } // Or use `subkeys`, which returns a more accurate type: for ka in cert.keys().subkeys() { let ka: SubordinateKeyAmalgamation<_> = ka; }
Implementations
Changes the key’s parts tag to PublicParts
.
Changes the key’s parts tag to PublicParts
.
Changes the key’s parts tag to SecretParts
.
Changes the key’s parts tag to SecretParts
.
Changes the key’s parts tag to UnspecifiedParts
.
Changes the key’s parts tag to UnspecifiedParts
.
Changes the key’s parts tag to PublicParts
.
Changes the key’s parts tag to PublicParts
.
Changes the key’s parts tag to SecretParts
.
Changes the key’s parts tag to SecretParts
.
Changes the key’s parts tag to UnspecifiedParts
.
Changes the key’s parts tag to UnspecifiedParts
.
Changes the key’s parts tag to PublicParts
.
Changes the key’s parts tag to PublicParts
.
Changes the key’s parts tag to SecretParts
.
Changes the key’s parts tag to SecretParts
.
Changes the key’s parts tag to UnspecifiedParts
.
Changes the key’s parts tag to UnspecifiedParts
.
Returns the KeyAmalgamation
’s ComponentAmalgamation
.
Methods from Deref<Target = ComponentAmalgamation<'a, Key<P, R>>>
Changes the key’s parts tag to PublicParts
.
pub fn parts_as_secret(
&'a self
) -> Result<&'a ComponentAmalgamation<'a, Key<SecretParts, R>>>
[src]
pub fn parts_as_secret(
&'a self
) -> Result<&'a ComponentAmalgamation<'a, Key<SecretParts, R>>>
[src]Changes the key’s parts tag to SecretParts
.
Changes the key’s parts tag to UnspecifiedParts
.
Changes the key’s role tag to PrimaryRole
.
pub fn role_as_subordinate(
&'a self
) -> &'a ComponentAmalgamation<'a, Key<P, SubordinateRole>>
[src]
pub fn role_as_subordinate(
&'a self
) -> &'a ComponentAmalgamation<'a, Key<P, SubordinateRole>>
[src]Changes the key’s role tag to SubordinateRole
.
pub fn role_as_unspecified(
&'a self
) -> &'a ComponentAmalgamation<'a, Key<P, UnspecifiedRole>>
[src]
pub fn role_as_unspecified(
&'a self
) -> &'a ComponentAmalgamation<'a, Key<P, UnspecifiedRole>>
[src]Changes the key’s role tag to UnspecifiedRole
.
Returns the component’s associated certificate.
for u in cert.userids() { // It's not only an identical `Cert`, it's the same one. assert!(std::ptr::eq(u.cert(), &cert)); }
Returns this amalgamation’s bundle.
Note: although ComponentAmalgamation
derefs to a
&ComponentBundle
, this method provides a more accurate
lifetime, which is helpful when returning the reference from a
function. See the module’s documentation for more details.
Examples
use openpgp::cert::prelude::*; use openpgp::packet::prelude::*; cert.userids() .map(|ua| { // The following doesn't work: // // let b: &ComponentBundle<_> = &ua; b // // Because ua's lifetime is this closure and autoderef // assigns `b` the same lifetime as `ua`. `bundle()`, // however, returns a reference whose lifetime is that // of `cert`. ua.bundle() }) .collect::<Vec<&ComponentBundle<_>>>();
Returns this amalgamation’s component.
Note: although ComponentAmalgamation
derefs to a
&Component
(via &ComponentBundle
), this method provides a
more accurate lifetime, which is helpful when returning the
reference from a function. See the module’s documentation
for more details.
The component’s self-signatures.
The component’s third-party certifications.
The component’s revocations that were issued by the certificate holder.
The component’s revocations that were issued by other certificates.
Returns a reference to the User ID.
Note: although ComponentAmalgamation<UserID>
derefs to a
&UserID
(via &ComponentBundle
), this method provides a
more accurate lifetime, which is helpful when returning the
reference from a function. See the module’s documentation
for more details.
pub fn attest_certifications<C, S>(
&self,
policy: &dyn Policy,
primary_signer: &mut dyn Signer,
certifications: C
) -> Result<Vec<Signature>> where
C: IntoIterator<Item = S>,
S: Borrow<Signature>,
[src]
pub fn attest_certifications<C, S>(
&self,
policy: &dyn Policy,
primary_signer: &mut dyn Signer,
certifications: C
) -> Result<Vec<Signature>> where
C: IntoIterator<Item = S>,
S: Borrow<Signature>,
[src]Attests to third-party certifications.
This feature is experimental.
Allows the certificate owner to attest to third party certifications. See Section 5.2.3.30 of RFC 4880bis for details. This can be used to address certificate flooding concerns.
A policy is needed, because the expiration is updated by updating the current binding signatures.
Examples
let (alice, _) = CertBuilder::new() .add_userid("alice@example.org") .generate()?; let mut alice_signer = alice.primary_key().key().clone().parts_into_secret()? .into_keypair()?; let (bob, _) = CertBuilder::new() .add_userid("bob@example.org") .generate()?; let mut bob_signer = bob.primary_key().key().clone().parts_into_secret()? .into_keypair()?; let bob_pristine = bob.clone(); // Have Alice certify the binding between "bob@example.org" and // Bob's key. let alice_certifies_bob = bob.userids().next().unwrap().userid().bind( &mut alice_signer, &bob, SignatureBuilder::new(SignatureType::GenericCertification))?; let bob = bob.insert_packets(vec![alice_certifies_bob.clone()])?; // Have Bob attest that certification. let bobs_uid = bob.userids().next().unwrap(); let attestations = bobs_uid.attest_certifications( policy, &mut bob_signer, bobs_uid.certifications())?; let bob = bob.insert_packets(attestations)?; assert_eq!(bob.bad_signatures().count(), 0); assert_eq!(bob.userids().next().unwrap().certifications().next(), Some(&alice_certifies_bob));
Returns a reference to the User Attribute.
Note: although ComponentAmalgamation<UserAttribute>
derefs
to a &UserAttribute
(via &ComponentBundle
), this method
provides a more accurate lifetime, which is helpful when
returning the reference from a function. See the module’s
documentation for more details.
pub fn attest_certifications<C, S>(
&self,
policy: &dyn Policy,
primary_signer: &mut dyn Signer,
certifications: C
) -> Result<Vec<Signature>> where
C: IntoIterator<Item = S>,
S: Borrow<Signature>,
[src]
pub fn attest_certifications<C, S>(
&self,
policy: &dyn Policy,
primary_signer: &mut dyn Signer,
certifications: C
) -> Result<Vec<Signature>> where
C: IntoIterator<Item = S>,
S: Borrow<Signature>,
[src]Attests to third-party certifications.
This feature is experimental.
Allows the certificate owner to attest to third party certifications. See Section 5.2.3.30 of RFC 4880bis for details. This can be used to address certificate flooding concerns.
A policy is needed, because the expiration is updated by updating the current binding signatures.
Examples
Methods from Deref<Target = ComponentBundle<C>>
Changes the key’s parts tag to PublicParts
.
Changes the key’s parts tag to SecretParts
.
Changes the key’s parts tag to UnspecifiedParts
.
Changes the key’s role tag to PrimaryRole
.
Changes the key’s role tag to SubordinateRole
.
Changes the key’s role tag to UnspecifiedRole
.
Returns a reference to the bundle’s component.
Examples
// Display some information about any unknown components. for u in cert.unknowns() { eprintln!(" - {:?}", u.component()); }
pub fn binding_signature<T>(
&self,
policy: &dyn Policy,
t: T
) -> Result<&Signature> where
T: Into<Option<SystemTime>>,
[src]
pub fn binding_signature<T>(
&self,
policy: &dyn Policy,
t: T
) -> Result<&Signature> where
T: Into<Option<SystemTime>>,
[src]Returns the active binding signature at time t
.
The active binding signature is the most recent, non-revoked
self-signature that is valid according to the policy
and
alive at time t
(creation time <= t
, t < expiry
). If
there are multiple such signatures then the signatures are
ordered by their MPIs interpreted as byte strings.
Examples
use openpgp::policy::StandardPolicy; let p = &StandardPolicy::new(); // Display information about each User ID's current active // binding signature (the `time` parameter is `None`), if any. for ua in cert.userids() { eprintln!("{:?}", ua.binding_signature(p, None)); }
Returns the component’s self-signatures.
The signatures are validated, and they are sorted by their creation time, most recent first.
Examples
use openpgp::policy::StandardPolicy; let p = &StandardPolicy::new(); for (i, ka) in cert.keys().enumerate() { eprintln!("Key #{} ({}) has {:?} self signatures", i, ka.fingerprint(), ka.bundle().self_signatures().len()); }
Returns the component’s third-party certifications.
The signatures are not validated. They are sorted by their creation time, most recent first.
Examples
use openpgp::policy::StandardPolicy; let p = &StandardPolicy::new(); for ua in cert.userids() { eprintln!("User ID {} has {:?} unverified, third-party certifications", String::from_utf8_lossy(ua.userid().value()), ua.bundle().certifications().len()); }
Returns the component’s revocations that were issued by the certificate holder.
The revocations are validated, and they are sorted by their creation time, most recent first.
Examples
use openpgp::policy::StandardPolicy; let p = &StandardPolicy::new(); for u in cert.userids() { eprintln!("User ID {} has {:?} revocation certificates.", String::from_utf8_lossy(u.userid().value()), u.bundle().self_revocations().len()); }
Returns the component’s revocations that were issued by other certificates.
The revocations are not validated. They are sorted by their creation time, most recent first.
Examples
use openpgp::policy::StandardPolicy; let p = &StandardPolicy::new(); for u in cert.userids() { eprintln!("User ID {} has {:?} unverified, third-party revocation certificates.", String::from_utf8_lossy(u.userid().value()), u.bundle().other_revocations().len()); }
Returns all of the component’s Attestation Key Signatures.
This feature is experimental.
The signatures are validated, and they are sorted by their creation time, most recent first.
A certificate owner can use Attestation Key Signatures to attest to third party certifications. Currently, only userid and user attribute certifications can be attested. See Section 5.2.3.30 of RFC 4880bis for details.
Examples
use openpgp::policy::StandardPolicy; let p = &StandardPolicy::new(); for (i, uid) in cert.userids().enumerate() { eprintln!("UserID #{} ({:?}) has {:?} attestation key signatures", i, uid.email(), uid.attestations().count()); }
Returns all of the component’s signatures.
Only the self-signatures are validated. The signatures are sorted first by type, then by creation time. The self revocations come first, then the self signatures, then any key attestation signatures, certifications, and third-party revocations coming last. This function may return additional types of signatures that could be associated to this component.
Examples
use openpgp::policy::StandardPolicy; let p = &StandardPolicy::new(); for (i, ka) in cert.keys().enumerate() { eprintln!("Key #{} ({}) has {:?} signatures", i, ka.fingerprint(), ka.signatures().count()); }
Returns a reference to the key.
This is just a type-specific alias for
ComponentBundle::component
.
Examples
// Display some information about the keys. for ka in cert.keys() { eprintln!(" - {:?}", ka.key()); }
pub fn revocation_status<T>(
&self,
policy: &dyn Policy,
t: T
) -> RevocationStatus<'_> where
T: Into<Option<SystemTime>>,
[src]
pub fn revocation_status<T>(
&self,
policy: &dyn Policy,
t: T
) -> RevocationStatus<'_> where
T: Into<Option<SystemTime>>,
[src]Returns the subkey’s revocation status at time t
.
A subkey is revoked at time t
if:
-
There is a live revocation at time
t
that is newer than all live self signatures at timet
, or -
There is a hard revocation (even if it is not live at time
t
, and even if there is a newer self-signature).
Note: Certs and subkeys have different criteria from User IDs and User Attributes.
Note: this only returns whether this subkey is revoked; it does not imply anything about the Cert or other components.
Examples
use openpgp::policy::StandardPolicy; let p = &StandardPolicy::new(); // Display the subkeys' revocation status. for ka in cert.keys().subkeys() { eprintln!(" Revocation status of {}: {:?}", ka.fingerprint(), ka.revocation_status(p, None)); }
Returns a reference to the User ID.
This is just a type-specific alias for
ComponentBundle::component
.
Examples
// Display some information about the User IDs. for ua in cert.userids() { eprintln!(" - {:?}", ua.userid()); }
pub fn revocation_status<T>(
&self,
policy: &dyn Policy,
t: T
) -> RevocationStatus<'_> where
T: Into<Option<SystemTime>>,
[src]
pub fn revocation_status<T>(
&self,
policy: &dyn Policy,
t: T
) -> RevocationStatus<'_> where
T: Into<Option<SystemTime>>,
[src]Returns the User ID’s revocation status at time t
.
A User ID is revoked at time t
if:
- There is a live revocation at time
t
that is newer than all live self signatures at timet
.
Note: Certs and subkeys have different criteria from User IDs and User Attributes.
Note: this only returns whether this User ID is revoked; it does not imply anything about the Cert or other components.
Examples
use openpgp::policy::StandardPolicy; let p = &StandardPolicy::new(); // Display the User IDs' revocation status. for ua in cert.userids() { eprintln!(" Revocation status of {}: {:?}", String::from_utf8_lossy(ua.userid().value()), ua.revocation_status(p, None)); }
Returns a reference to the User Attribute.
This is just a type-specific alias for
ComponentBundle::component
.
Examples
// Display some information about the User Attributes for ua in cert.user_attributes() { eprintln!(" - {:?}", ua.user_attribute()); }
pub fn revocation_status<T>(
&self,
policy: &dyn Policy,
t: T
) -> RevocationStatus<'_> where
T: Into<Option<SystemTime>>,
[src]
pub fn revocation_status<T>(
&self,
policy: &dyn Policy,
t: T
) -> RevocationStatus<'_> where
T: Into<Option<SystemTime>>,
[src]Returns the User Attribute’s revocation status at time t
.
A User Attribute is revoked at time t
if:
- There is a live revocation at time
t
that is newer than all live self signatures at timet
.
Note: Certs and subkeys have different criteria from User IDs and User Attributes.
Note: this only returns whether this User Attribute is revoked; it does not imply anything about the Cert or other components.
Examples
use openpgp::policy::StandardPolicy; let p = &StandardPolicy::new(); // Display the User Attributes' revocation status. for (i, ua) in cert.user_attributes().enumerate() { eprintln!(" Revocation status of User Attribute #{}: {:?}", i, ua.revocation_status(p, None)); }
Returns a reference to the unknown component.
This is just a type-specific alias for
ComponentBundle::component
.
Examples
// Display some information about the User Attributes for u in cert.unknowns() { eprintln!(" - {:?}", u.unknown()); }
Trait Implementations
impl<'a, P, R, R2> Deref for KeyAmalgamation<'a, P, R, R2> where
P: 'a + KeyParts,
R: 'a + KeyRole,
[src]
impl<'a, P, R, R2> Deref for KeyAmalgamation<'a, P, R, R2> where
P: 'a + KeyParts,
R: 'a + KeyRole,
[src]impl<'a> From<&'a KeyAmalgamation<'a, PublicParts, PrimaryRole, ()>> for &'a PrimaryKeyAmalgamation<'a, UnspecifiedParts>
[src]
impl<'a> From<&'a KeyAmalgamation<'a, PublicParts, PrimaryRole, ()>> for &'a PrimaryKeyAmalgamation<'a, UnspecifiedParts>
[src]Performs the conversion.
impl<'a> From<&'a KeyAmalgamation<'a, PublicParts, SubordinateRole, ()>> for &'a SubordinateKeyAmalgamation<'a, UnspecifiedParts>
[src]
impl<'a> From<&'a KeyAmalgamation<'a, PublicParts, SubordinateRole, ()>> for &'a SubordinateKeyAmalgamation<'a, UnspecifiedParts>
[src]Performs the conversion.
impl<'a> From<&'a KeyAmalgamation<'a, PublicParts, UnspecifiedRole, bool>> for &'a ErasedKeyAmalgamation<'a, UnspecifiedParts>
[src]
impl<'a> From<&'a KeyAmalgamation<'a, PublicParts, UnspecifiedRole, bool>> for &'a ErasedKeyAmalgamation<'a, UnspecifiedParts>
[src]Performs the conversion.
impl<'a> From<&'a KeyAmalgamation<'a, SecretParts, PrimaryRole, ()>> for &'a PrimaryKeyAmalgamation<'a, PublicParts>
[src]
impl<'a> From<&'a KeyAmalgamation<'a, SecretParts, PrimaryRole, ()>> for &'a PrimaryKeyAmalgamation<'a, PublicParts>
[src]Performs the conversion.
impl<'a> From<&'a KeyAmalgamation<'a, SecretParts, PrimaryRole, ()>> for &'a PrimaryKeyAmalgamation<'a, UnspecifiedParts>
[src]
impl<'a> From<&'a KeyAmalgamation<'a, SecretParts, PrimaryRole, ()>> for &'a PrimaryKeyAmalgamation<'a, UnspecifiedParts>
[src]Performs the conversion.
impl<'a> From<&'a KeyAmalgamation<'a, SecretParts, SubordinateRole, ()>> for &'a SubordinateKeyAmalgamation<'a, PublicParts>
[src]
impl<'a> From<&'a KeyAmalgamation<'a, SecretParts, SubordinateRole, ()>> for &'a SubordinateKeyAmalgamation<'a, PublicParts>
[src]Performs the conversion.
impl<'a> From<&'a KeyAmalgamation<'a, SecretParts, SubordinateRole, ()>> for &'a SubordinateKeyAmalgamation<'a, UnspecifiedParts>
[src]
impl<'a> From<&'a KeyAmalgamation<'a, SecretParts, SubordinateRole, ()>> for &'a SubordinateKeyAmalgamation<'a, UnspecifiedParts>
[src]Performs the conversion.
impl<'a> From<&'a KeyAmalgamation<'a, SecretParts, UnspecifiedRole, bool>> for &'a ErasedKeyAmalgamation<'a, PublicParts>
[src]
impl<'a> From<&'a KeyAmalgamation<'a, SecretParts, UnspecifiedRole, bool>> for &'a ErasedKeyAmalgamation<'a, PublicParts>
[src]Performs the conversion.
impl<'a> From<&'a KeyAmalgamation<'a, SecretParts, UnspecifiedRole, bool>> for &'a ErasedKeyAmalgamation<'a, UnspecifiedParts>
[src]
impl<'a> From<&'a KeyAmalgamation<'a, SecretParts, UnspecifiedRole, bool>> for &'a ErasedKeyAmalgamation<'a, UnspecifiedParts>
[src]Performs the conversion.
impl<'a> From<&'a KeyAmalgamation<'a, UnspecifiedParts, PrimaryRole, ()>> for &'a PrimaryKeyAmalgamation<'a, PublicParts>
[src]
impl<'a> From<&'a KeyAmalgamation<'a, UnspecifiedParts, PrimaryRole, ()>> for &'a PrimaryKeyAmalgamation<'a, PublicParts>
[src]Performs the conversion.
impl<'a> From<&'a KeyAmalgamation<'a, UnspecifiedParts, SubordinateRole, ()>> for &'a SubordinateKeyAmalgamation<'a, PublicParts>
[src]
impl<'a> From<&'a KeyAmalgamation<'a, UnspecifiedParts, SubordinateRole, ()>> for &'a SubordinateKeyAmalgamation<'a, PublicParts>
[src]Performs the conversion.
impl<'a> From<&'a KeyAmalgamation<'a, UnspecifiedParts, UnspecifiedRole, bool>> for &'a ErasedKeyAmalgamation<'a, PublicParts>
[src]
impl<'a> From<&'a KeyAmalgamation<'a, UnspecifiedParts, UnspecifiedRole, bool>> for &'a ErasedKeyAmalgamation<'a, PublicParts>
[src]Performs the conversion.
impl<'a, P: 'a + KeyParts> From<KeyAmalgamation<'a, P, PrimaryRole, ()>> for ErasedKeyAmalgamation<'a, P>
[src]
impl<'a, P: 'a + KeyParts> From<KeyAmalgamation<'a, P, PrimaryRole, ()>> for ErasedKeyAmalgamation<'a, P>
[src]Performs the conversion.
impl<'a, P: 'a + KeyParts> From<KeyAmalgamation<'a, P, SubordinateRole, ()>> for ErasedKeyAmalgamation<'a, P>
[src]
impl<'a, P: 'a + KeyParts> From<KeyAmalgamation<'a, P, SubordinateRole, ()>> for ErasedKeyAmalgamation<'a, P>
[src]Performs the conversion.
impl<'a> From<KeyAmalgamation<'a, PublicParts, PrimaryRole, ()>> for PrimaryKeyAmalgamation<'a, UnspecifiedParts>
[src]
impl<'a> From<KeyAmalgamation<'a, PublicParts, PrimaryRole, ()>> for PrimaryKeyAmalgamation<'a, UnspecifiedParts>
[src]Performs the conversion.
impl<'a> From<KeyAmalgamation<'a, PublicParts, PrimaryRole, ()>> for ErasedKeyAmalgamation<'a, UnspecifiedParts>
[src]
impl<'a> From<KeyAmalgamation<'a, PublicParts, PrimaryRole, ()>> for ErasedKeyAmalgamation<'a, UnspecifiedParts>
[src]Performs the conversion.
impl<'a> From<KeyAmalgamation<'a, PublicParts, SubordinateRole, ()>> for SubordinateKeyAmalgamation<'a, UnspecifiedParts>
[src]
impl<'a> From<KeyAmalgamation<'a, PublicParts, SubordinateRole, ()>> for SubordinateKeyAmalgamation<'a, UnspecifiedParts>
[src]Performs the conversion.
impl<'a> From<KeyAmalgamation<'a, PublicParts, SubordinateRole, ()>> for ErasedKeyAmalgamation<'a, UnspecifiedParts>
[src]
impl<'a> From<KeyAmalgamation<'a, PublicParts, SubordinateRole, ()>> for ErasedKeyAmalgamation<'a, UnspecifiedParts>
[src]Performs the conversion.
impl<'a> From<KeyAmalgamation<'a, PublicParts, UnspecifiedRole, bool>> for ErasedKeyAmalgamation<'a, UnspecifiedParts>
[src]
impl<'a> From<KeyAmalgamation<'a, PublicParts, UnspecifiedRole, bool>> for ErasedKeyAmalgamation<'a, UnspecifiedParts>
[src]Performs the conversion.
impl<'a> From<KeyAmalgamation<'a, SecretParts, PrimaryRole, ()>> for PrimaryKeyAmalgamation<'a, PublicParts>
[src]
impl<'a> From<KeyAmalgamation<'a, SecretParts, PrimaryRole, ()>> for PrimaryKeyAmalgamation<'a, PublicParts>
[src]Performs the conversion.
impl<'a> From<KeyAmalgamation<'a, SecretParts, PrimaryRole, ()>> for PrimaryKeyAmalgamation<'a, UnspecifiedParts>
[src]
impl<'a> From<KeyAmalgamation<'a, SecretParts, PrimaryRole, ()>> for PrimaryKeyAmalgamation<'a, UnspecifiedParts>
[src]Performs the conversion.
impl<'a> From<KeyAmalgamation<'a, SecretParts, PrimaryRole, ()>> for ErasedKeyAmalgamation<'a, PublicParts>
[src]
impl<'a> From<KeyAmalgamation<'a, SecretParts, PrimaryRole, ()>> for ErasedKeyAmalgamation<'a, PublicParts>
[src]Performs the conversion.
impl<'a> From<KeyAmalgamation<'a, SecretParts, PrimaryRole, ()>> for ErasedKeyAmalgamation<'a, UnspecifiedParts>
[src]
impl<'a> From<KeyAmalgamation<'a, SecretParts, PrimaryRole, ()>> for ErasedKeyAmalgamation<'a, UnspecifiedParts>
[src]Performs the conversion.
impl<'a> From<KeyAmalgamation<'a, SecretParts, SubordinateRole, ()>> for SubordinateKeyAmalgamation<'a, PublicParts>
[src]
impl<'a> From<KeyAmalgamation<'a, SecretParts, SubordinateRole, ()>> for SubordinateKeyAmalgamation<'a, PublicParts>
[src]Performs the conversion.
impl<'a> From<KeyAmalgamation<'a, SecretParts, SubordinateRole, ()>> for SubordinateKeyAmalgamation<'a, UnspecifiedParts>
[src]
impl<'a> From<KeyAmalgamation<'a, SecretParts, SubordinateRole, ()>> for SubordinateKeyAmalgamation<'a, UnspecifiedParts>
[src]Performs the conversion.
impl<'a> From<KeyAmalgamation<'a, SecretParts, SubordinateRole, ()>> for ErasedKeyAmalgamation<'a, PublicParts>
[src]
impl<'a> From<KeyAmalgamation<'a, SecretParts, SubordinateRole, ()>> for ErasedKeyAmalgamation<'a, PublicParts>
[src]Performs the conversion.
impl<'a> From<KeyAmalgamation<'a, SecretParts, SubordinateRole, ()>> for ErasedKeyAmalgamation<'a, UnspecifiedParts>
[src]
impl<'a> From<KeyAmalgamation<'a, SecretParts, SubordinateRole, ()>> for ErasedKeyAmalgamation<'a, UnspecifiedParts>
[src]Performs the conversion.
impl<'a> From<KeyAmalgamation<'a, SecretParts, UnspecifiedRole, bool>> for ErasedKeyAmalgamation<'a, PublicParts>
[src]
impl<'a> From<KeyAmalgamation<'a, SecretParts, UnspecifiedRole, bool>> for ErasedKeyAmalgamation<'a, PublicParts>
[src]Performs the conversion.
impl<'a> From<KeyAmalgamation<'a, SecretParts, UnspecifiedRole, bool>> for ErasedKeyAmalgamation<'a, UnspecifiedParts>
[src]
impl<'a> From<KeyAmalgamation<'a, SecretParts, UnspecifiedRole, bool>> for ErasedKeyAmalgamation<'a, UnspecifiedParts>
[src]Performs the conversion.
impl<'a> From<KeyAmalgamation<'a, UnspecifiedParts, PrimaryRole, ()>> for PrimaryKeyAmalgamation<'a, PublicParts>
[src]
impl<'a> From<KeyAmalgamation<'a, UnspecifiedParts, PrimaryRole, ()>> for PrimaryKeyAmalgamation<'a, PublicParts>
[src]Performs the conversion.
impl<'a> From<KeyAmalgamation<'a, UnspecifiedParts, PrimaryRole, ()>> for ErasedKeyAmalgamation<'a, PublicParts>
[src]
impl<'a> From<KeyAmalgamation<'a, UnspecifiedParts, PrimaryRole, ()>> for ErasedKeyAmalgamation<'a, PublicParts>
[src]Performs the conversion.
impl<'a> From<KeyAmalgamation<'a, UnspecifiedParts, SubordinateRole, ()>> for SubordinateKeyAmalgamation<'a, PublicParts>
[src]
impl<'a> From<KeyAmalgamation<'a, UnspecifiedParts, SubordinateRole, ()>> for SubordinateKeyAmalgamation<'a, PublicParts>
[src]Performs the conversion.
impl<'a> From<KeyAmalgamation<'a, UnspecifiedParts, SubordinateRole, ()>> for ErasedKeyAmalgamation<'a, PublicParts>
[src]
impl<'a> From<KeyAmalgamation<'a, UnspecifiedParts, SubordinateRole, ()>> for ErasedKeyAmalgamation<'a, PublicParts>
[src]Performs the conversion.
impl<'a> From<KeyAmalgamation<'a, UnspecifiedParts, UnspecifiedRole, bool>> for ErasedKeyAmalgamation<'a, PublicParts>
[src]
impl<'a> From<KeyAmalgamation<'a, UnspecifiedParts, UnspecifiedRole, bool>> for ErasedKeyAmalgamation<'a, PublicParts>
[src]Performs the conversion.
impl<'a, P, R, R2> From<ValidKeyAmalgamation<'a, P, R, R2>> for KeyAmalgamation<'a, P, R, R2> where
P: 'a + KeyParts,
R: 'a + KeyRole,
R2: Copy,
[src]
impl<'a, P, R, R2> From<ValidKeyAmalgamation<'a, P, R, R2>> for KeyAmalgamation<'a, P, R, R2> where
P: 'a + KeyParts,
R: 'a + KeyRole,
R2: Copy,
[src]Performs the conversion.
impl<'a> TryFrom<&'a KeyAmalgamation<'a, PublicParts, PrimaryRole, ()>> for &'a PrimaryKeyAmalgamation<'a, SecretParts>
[src]
impl<'a> TryFrom<&'a KeyAmalgamation<'a, PublicParts, PrimaryRole, ()>> for &'a PrimaryKeyAmalgamation<'a, SecretParts>
[src]Performs the conversion.
impl<'a> TryFrom<&'a KeyAmalgamation<'a, PublicParts, SubordinateRole, ()>> for &'a SubordinateKeyAmalgamation<'a, SecretParts>
[src]
impl<'a> TryFrom<&'a KeyAmalgamation<'a, PublicParts, SubordinateRole, ()>> for &'a SubordinateKeyAmalgamation<'a, SecretParts>
[src]Performs the conversion.
impl<'a> TryFrom<&'a KeyAmalgamation<'a, PublicParts, UnspecifiedRole, bool>> for &'a ErasedKeyAmalgamation<'a, SecretParts>
[src]
impl<'a> TryFrom<&'a KeyAmalgamation<'a, PublicParts, UnspecifiedRole, bool>> for &'a ErasedKeyAmalgamation<'a, SecretParts>
[src]Performs the conversion.
impl<'a> TryFrom<&'a KeyAmalgamation<'a, UnspecifiedParts, PrimaryRole, ()>> for &'a PrimaryKeyAmalgamation<'a, SecretParts>
[src]
impl<'a> TryFrom<&'a KeyAmalgamation<'a, UnspecifiedParts, PrimaryRole, ()>> for &'a PrimaryKeyAmalgamation<'a, SecretParts>
[src]Performs the conversion.
impl<'a> TryFrom<&'a KeyAmalgamation<'a, UnspecifiedParts, SubordinateRole, ()>> for &'a SubordinateKeyAmalgamation<'a, SecretParts>
[src]
impl<'a> TryFrom<&'a KeyAmalgamation<'a, UnspecifiedParts, SubordinateRole, ()>> for &'a SubordinateKeyAmalgamation<'a, SecretParts>
[src]Performs the conversion.
impl<'a> TryFrom<&'a KeyAmalgamation<'a, UnspecifiedParts, UnspecifiedRole, bool>> for &'a ErasedKeyAmalgamation<'a, SecretParts>
[src]
impl<'a> TryFrom<&'a KeyAmalgamation<'a, UnspecifiedParts, UnspecifiedRole, bool>> for &'a ErasedKeyAmalgamation<'a, SecretParts>
[src]Performs the conversion.
impl<'a, P, P2> TryFrom<KeyAmalgamation<'a, P, UnspecifiedRole, bool>> for PrimaryKeyAmalgamation<'a, P2> where
P: 'a + KeyParts,
P2: 'a + KeyParts,
[src]
impl<'a, P, P2> TryFrom<KeyAmalgamation<'a, P, UnspecifiedRole, bool>> for PrimaryKeyAmalgamation<'a, P2> where
P: 'a + KeyParts,
P2: 'a + KeyParts,
[src]impl<'a, P, P2> TryFrom<KeyAmalgamation<'a, P, UnspecifiedRole, bool>> for SubordinateKeyAmalgamation<'a, P2> where
P: 'a + KeyParts,
P2: 'a + KeyParts,
[src]
impl<'a, P, P2> TryFrom<KeyAmalgamation<'a, P, UnspecifiedRole, bool>> for SubordinateKeyAmalgamation<'a, P2> where
P: 'a + KeyParts,
P2: 'a + KeyParts,
[src]impl<'a> TryFrom<KeyAmalgamation<'a, PublicParts, PrimaryRole, ()>> for PrimaryKeyAmalgamation<'a, SecretParts>
[src]
impl<'a> TryFrom<KeyAmalgamation<'a, PublicParts, PrimaryRole, ()>> for PrimaryKeyAmalgamation<'a, SecretParts>
[src]Performs the conversion.
impl<'a> TryFrom<KeyAmalgamation<'a, PublicParts, SubordinateRole, ()>> for SubordinateKeyAmalgamation<'a, SecretParts>
[src]
impl<'a> TryFrom<KeyAmalgamation<'a, PublicParts, SubordinateRole, ()>> for SubordinateKeyAmalgamation<'a, SecretParts>
[src]Performs the conversion.
impl<'a> TryFrom<KeyAmalgamation<'a, PublicParts, UnspecifiedRole, bool>> for ErasedKeyAmalgamation<'a, SecretParts>
[src]
impl<'a> TryFrom<KeyAmalgamation<'a, PublicParts, UnspecifiedRole, bool>> for ErasedKeyAmalgamation<'a, SecretParts>
[src]Performs the conversion.
impl<'a> TryFrom<KeyAmalgamation<'a, UnspecifiedParts, PrimaryRole, ()>> for PrimaryKeyAmalgamation<'a, SecretParts>
[src]
impl<'a> TryFrom<KeyAmalgamation<'a, UnspecifiedParts, PrimaryRole, ()>> for PrimaryKeyAmalgamation<'a, SecretParts>
[src]Performs the conversion.
impl<'a> TryFrom<KeyAmalgamation<'a, UnspecifiedParts, SubordinateRole, ()>> for SubordinateKeyAmalgamation<'a, SecretParts>
[src]
impl<'a> TryFrom<KeyAmalgamation<'a, UnspecifiedParts, SubordinateRole, ()>> for SubordinateKeyAmalgamation<'a, SecretParts>
[src]Performs the conversion.
impl<'a> TryFrom<KeyAmalgamation<'a, UnspecifiedParts, UnspecifiedRole, bool>> for ErasedKeyAmalgamation<'a, SecretParts>
[src]
impl<'a> TryFrom<KeyAmalgamation<'a, UnspecifiedParts, UnspecifiedRole, bool>> for ErasedKeyAmalgamation<'a, SecretParts>
[src]Performs the conversion.
Auto Trait Implementations
impl<'a, P, R, R2> !RefUnwindSafe for KeyAmalgamation<'a, P, R, R2>
impl<'a, P, R, R2> Send for KeyAmalgamation<'a, P, R, R2> where
P: Sync,
R: Sync,
R2: Send,
impl<'a, P, R, R2> Sync for KeyAmalgamation<'a, P, R, R2> where
P: Sync,
R: Sync,
R2: Sync,
impl<'a, P, R, R2> Unpin for KeyAmalgamation<'a, P, R, R2> where
R2: Unpin,
impl<'a, P, R, R2> !UnwindSafe for KeyAmalgamation<'a, P, R, R2>
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self