[−][src]Struct sequoia_openpgp::cert::amalgamation::KeyAmalgamation
A key amalgamation.
Generally, you won't use this type directly, but instead use
PrimaryKeyAmalgamation
, SubordinateKeyAmalgamation
, or
ErasedKeyAmalgamation
.
See the module-level documentation for information about key amalgamations.
Implementations
impl<'a, P> KeyAmalgamation<'a, P, PrimaryRole, ()> where
P: KeyParts,
[src]
P: KeyParts,
pub fn parts_into_public(self) -> PrimaryKeyAmalgamation<'a, PublicParts>
[src]
Changes the key's parts tag to PublicParts
.
pub fn parts_as_public(&'a self) -> &'a PrimaryKeyAmalgamation<'a, PublicParts>
[src]
Changes the key's parts tag to PublicParts
.
pub fn parts_into_secret(
self
) -> Result<PrimaryKeyAmalgamation<'a, SecretParts>>
[src]
self
) -> Result<PrimaryKeyAmalgamation<'a, SecretParts>>
Changes the key's parts tag to SecretParts
.
pub fn parts_as_secret(
&'a self
) -> Result<&'a PrimaryKeyAmalgamation<'a, SecretParts>>
[src]
&'a self
) -> Result<&'a PrimaryKeyAmalgamation<'a, SecretParts>>
Changes the key's parts tag to SecretParts
.
pub fn parts_into_unspecified(
self
) -> PrimaryKeyAmalgamation<'a, UnspecifiedParts>
[src]
self
) -> PrimaryKeyAmalgamation<'a, UnspecifiedParts>
Changes the key's parts tag to UnspecifiedParts
.
pub fn parts_as_unspecified(
&'a self
) -> &PrimaryKeyAmalgamation<'a, UnspecifiedParts>
[src]
&'a self
) -> &PrimaryKeyAmalgamation<'a, UnspecifiedParts>
Changes the key's parts tag to UnspecifiedParts
.
impl<'a, P> KeyAmalgamation<'a, P, SubordinateRole, ()> where
P: KeyParts,
[src]
P: KeyParts,
pub fn parts_into_public(self) -> SubordinateKeyAmalgamation<'a, PublicParts>
[src]
Changes the key's parts tag to PublicParts
.
pub fn parts_as_public(
&'a self
) -> &'a SubordinateKeyAmalgamation<'a, PublicParts>
[src]
&'a self
) -> &'a SubordinateKeyAmalgamation<'a, PublicParts>
Changes the key's parts tag to PublicParts
.
pub fn parts_into_secret(
self
) -> Result<SubordinateKeyAmalgamation<'a, SecretParts>>
[src]
self
) -> Result<SubordinateKeyAmalgamation<'a, SecretParts>>
Changes the key's parts tag to SecretParts
.
pub fn parts_as_secret(
&'a self
) -> Result<&'a SubordinateKeyAmalgamation<'a, SecretParts>>
[src]
&'a self
) -> Result<&'a SubordinateKeyAmalgamation<'a, SecretParts>>
Changes the key's parts tag to SecretParts
.
pub fn parts_into_unspecified(
self
) -> SubordinateKeyAmalgamation<'a, UnspecifiedParts>
[src]
self
) -> SubordinateKeyAmalgamation<'a, UnspecifiedParts>
Changes the key's parts tag to UnspecifiedParts
.
pub fn parts_as_unspecified(
&'a self
) -> &SubordinateKeyAmalgamation<'a, UnspecifiedParts>
[src]
&'a self
) -> &SubordinateKeyAmalgamation<'a, UnspecifiedParts>
Changes the key's parts tag to UnspecifiedParts
.
impl<'a, P> KeyAmalgamation<'a, P, UnspecifiedRole, bool> where
P: KeyParts,
[src]
P: KeyParts,
pub fn parts_into_public(self) -> ErasedKeyAmalgamation<'a, PublicParts>
[src]
Changes the key's parts tag to PublicParts
.
pub fn parts_as_public(&'a self) -> &'a ErasedKeyAmalgamation<'a, PublicParts>
[src]
Changes the key's parts tag to PublicParts
.
pub fn parts_into_secret(self) -> Result<ErasedKeyAmalgamation<'a, SecretParts>>
[src]
Changes the key's parts tag to SecretParts
.
pub fn parts_as_secret(
&'a self
) -> Result<&'a ErasedKeyAmalgamation<'a, SecretParts>>
[src]
&'a self
) -> Result<&'a ErasedKeyAmalgamation<'a, SecretParts>>
Changes the key's parts tag to SecretParts
.
pub fn parts_into_unspecified(
self
) -> ErasedKeyAmalgamation<'a, UnspecifiedParts>
[src]
self
) -> ErasedKeyAmalgamation<'a, UnspecifiedParts>
Changes the key's parts tag to UnspecifiedParts
.
pub fn parts_as_unspecified(
&'a self
) -> &ErasedKeyAmalgamation<'a, UnspecifiedParts>
[src]
&'a self
) -> &ErasedKeyAmalgamation<'a, UnspecifiedParts>
Changes the key's parts tag to UnspecifiedParts
.
impl<'a, P, R, R2> KeyAmalgamation<'a, P, R, R2> where
P: 'a + KeyParts,
R: 'a + KeyRole,
[src]
P: 'a + KeyParts,
R: 'a + KeyRole,
pub fn component_amalgamation(&self) -> &ComponentAmalgamation<'a, Key<P, R>>
[src]
Returns the KeyAmalgamation
's ComponentAmalgamation
.
pub fn key(&self) -> &'a Key<P, R>
[src]
Returns the KeyAmalgamation
's key.
Normally, a type implementing KeyAmalgamation
eventually
derefs to a Key
, however, this method provides a more
accurate lifetime. See the documentation for
ComponentAmalgamation::component
for an explanation.
Methods from Deref<Target = ComponentAmalgamation<'a, Key<P, R>>>
pub fn parts_as_public(
&'a self
) -> &'a ComponentAmalgamation<'a, Key<PublicParts, R>>
[src]
&'a self
) -> &'a ComponentAmalgamation<'a, Key<PublicParts, R>>
Changes the key's parts tag to PublicParts
.
pub fn parts_as_secret(
&'a self
) -> Result<&'a ComponentAmalgamation<'a, Key<SecretParts, R>>>
[src]
&'a self
) -> Result<&'a ComponentAmalgamation<'a, Key<SecretParts, R>>>
Changes the key's parts tag to SecretParts
.
pub fn parts_as_unspecified(
&'a self
) -> &ComponentAmalgamation<'a, Key<UnspecifiedParts, R>>
[src]
&'a self
) -> &ComponentAmalgamation<'a, Key<UnspecifiedParts, R>>
Changes the key's parts tag to UnspecifiedParts
.
pub fn mark_role_primary_ref(
&'a self
) -> &'a ComponentAmalgamation<'a, Key<P, PrimaryRole>>
[src]
&'a self
) -> &'a ComponentAmalgamation<'a, Key<P, PrimaryRole>>
Changes the key's role tag to PrimaryRole
.
pub fn mark_role_subordinate_ref(
&'a self
) -> &'a ComponentAmalgamation<'a, Key<P, SubordinateRole>>
[src]
&'a self
) -> &'a ComponentAmalgamation<'a, Key<P, SubordinateRole>>
Changes the key's role tag to SubordinateRole
.
pub fn mark_role_unspecified_ref(
&'a self
) -> &'a ComponentAmalgamation<'a, Key<P, UnspecifiedRole>>
[src]
&'a self
) -> &'a ComponentAmalgamation<'a, Key<P, UnspecifiedRole>>
Changes the key's role tag to UnspecifiedRole
.
pub fn cert(&self) -> &'a Cert
[src]
Returns the certificate that the component came from.
pub fn bundle(&self) -> &'a ComponentBundle<C>
[src]
Returns this amalgamation's bundle.
Note: although Amalgamation
derefs to a
ComponentBundle
, this method provides a more accurate
lifetime, which is helpful when returning the reference
from a function.
Consider the following, which doesn't work:
use openpgp::cert::prelude::*; use openpgp::packet::prelude::*; cert.keys() .map(|ka| { let b : &KeyBundle<_, _> = &ka; b }) .collect::<Vec<&KeyBundle<_, _>>>();
Compiling the above code results in the following error:
b
returns a value referencing data owned by the current function
This error occurs because the Deref
trait says that the
lifetime of the target, i.e., &KeyBundle
, is
bounded by ka
's lifetime, whose lifetime is indeed
limited to the closure. But, &KeyBundle
is independent
of ka
! It is a copy of the KeyAmalgamation
's
reference to the KeyBundle
whose lifetime is 'a
.
Unfortunately, this can't be expressed using Deref
, but
it can be done using a separate method:
use openpgp::cert::prelude::*; use openpgp::packet::prelude::*; cert.keys().map(|ka| ka.bundle()) .collect::<Vec<&KeyBundle<_, _>>>();
pub fn component(&self) -> &'a C
[src]
Returns this amalgamation's component.
Note: although Amalgamation
derefs to a Component
(via
ComponentBundle
), this method provides a more accurate
lifetime, which is helpful when returning the reference
from a function.
Consider the following, which doesn't work:
use openpgp::cert::prelude::*; use openpgp::packet::prelude::*; cert.keys() .map(|ka| { let k : &Key<_, _> = &ka; k }) .collect::<Vec<&Key<_, _>>>();
Compiling the above code results in the following error:
k
returns a value referencing data owned by the current function
This error occurs because the Deref
trait says that the
lifetime of the target, i.e., &Key
, is bounded by
the ka
's lifetime, whose lifetime is indeed limited to
the closure. But, &Key
is independent of ka
! It is a
copy of the KeyAmalgamation
's reference to the Key
whose lifetime is 'a
. Unfortunately, this can't be
expressed using Deref
, but it can be done using a
separate method:
use openpgp::cert::prelude::*; use openpgp::packet::prelude::*; cert.keys().map(|ka| ka.key()) .collect::<Vec<&Key<_, _>>>();
pub fn user_attribute(&self) -> &'a UserAttribute
[src]
Returns a reference to the User Attribute.
Trait Implementations
impl<'a, P, R, R2> Clone for KeyAmalgamation<'a, P, R, R2> where
P: 'a + KeyParts,
R: 'a + KeyRole,
R2: Copy,
[src]
P: 'a + KeyParts,
R: 'a + KeyRole,
R2: Copy,
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'a, P: Debug, R: Debug, R2: Debug> Debug for KeyAmalgamation<'a, P, R, R2> where
P: 'a + KeyParts,
R: 'a + KeyRole,
[src]
P: 'a + KeyParts,
R: 'a + KeyRole,
impl<'a, P, R, R2> Deref for KeyAmalgamation<'a, P, R, R2> where
P: 'a + KeyParts,
R: 'a + KeyRole,
[src]
P: 'a + KeyParts,
R: 'a + KeyRole,
type Target = ComponentAmalgamation<'a, Key<P, R>>
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
impl<'a> From<&'a KeyAmalgamation<'a, PublicParts, PrimaryRole, ()>> for &'a PrimaryKeyAmalgamation<'a, UnspecifiedParts>
[src]
fn from(p: &'a PrimaryKeyAmalgamation<'a, PublicParts>) -> Self
[src]
impl<'a> From<&'a KeyAmalgamation<'a, PublicParts, SubordinateRole, ()>> for &'a SubordinateKeyAmalgamation<'a, UnspecifiedParts>
[src]
fn from(p: &'a SubordinateKeyAmalgamation<'a, PublicParts>) -> Self
[src]
impl<'a> From<&'a KeyAmalgamation<'a, PublicParts, UnspecifiedRole, bool>> for &'a ErasedKeyAmalgamation<'a, UnspecifiedParts>
[src]
fn from(p: &'a ErasedKeyAmalgamation<'a, PublicParts>) -> Self
[src]
impl<'a> From<&'a KeyAmalgamation<'a, SecretParts, PrimaryRole, ()>> for &'a PrimaryKeyAmalgamation<'a, PublicParts>
[src]
fn from(p: &'a PrimaryKeyAmalgamation<'a, SecretParts>) -> Self
[src]
impl<'a> From<&'a KeyAmalgamation<'a, SecretParts, PrimaryRole, ()>> for &'a PrimaryKeyAmalgamation<'a, UnspecifiedParts>
[src]
fn from(p: &'a PrimaryKeyAmalgamation<'a, SecretParts>) -> Self
[src]
impl<'a> From<&'a KeyAmalgamation<'a, SecretParts, SubordinateRole, ()>> for &'a SubordinateKeyAmalgamation<'a, PublicParts>
[src]
fn from(p: &'a SubordinateKeyAmalgamation<'a, SecretParts>) -> Self
[src]
impl<'a> From<&'a KeyAmalgamation<'a, SecretParts, SubordinateRole, ()>> for &'a SubordinateKeyAmalgamation<'a, UnspecifiedParts>
[src]
fn from(p: &'a SubordinateKeyAmalgamation<'a, SecretParts>) -> Self
[src]
impl<'a> From<&'a KeyAmalgamation<'a, SecretParts, UnspecifiedRole, bool>> for &'a ErasedKeyAmalgamation<'a, PublicParts>
[src]
fn from(p: &'a ErasedKeyAmalgamation<'a, SecretParts>) -> Self
[src]
impl<'a> From<&'a KeyAmalgamation<'a, SecretParts, UnspecifiedRole, bool>> for &'a ErasedKeyAmalgamation<'a, UnspecifiedParts>
[src]
fn from(p: &'a ErasedKeyAmalgamation<'a, SecretParts>) -> Self
[src]
impl<'a> From<&'a KeyAmalgamation<'a, UnspecifiedParts, PrimaryRole, ()>> for &'a PrimaryKeyAmalgamation<'a, PublicParts>
[src]
fn from(p: &'a PrimaryKeyAmalgamation<'a, UnspecifiedParts>) -> Self
[src]
impl<'a> From<&'a KeyAmalgamation<'a, UnspecifiedParts, SubordinateRole, ()>> for &'a SubordinateKeyAmalgamation<'a, PublicParts>
[src]
fn from(p: &'a SubordinateKeyAmalgamation<'a, UnspecifiedParts>) -> Self
[src]
impl<'a> From<&'a KeyAmalgamation<'a, UnspecifiedParts, UnspecifiedRole, bool>> for &'a ErasedKeyAmalgamation<'a, PublicParts>
[src]
fn from(p: &'a ErasedKeyAmalgamation<'a, UnspecifiedParts>) -> Self
[src]
impl<'a, P: 'a + KeyParts> From<KeyAmalgamation<'a, P, PrimaryRole, ()>> for ErasedKeyAmalgamation<'a, P>
[src]
fn from(ka: PrimaryKeyAmalgamation<'a, P>) -> Self
[src]
impl<'a, P: 'a + KeyParts> From<KeyAmalgamation<'a, P, SubordinateRole, ()>> for ErasedKeyAmalgamation<'a, P>
[src]
fn from(ka: SubordinateKeyAmalgamation<'a, P>) -> Self
[src]
impl<'a> From<KeyAmalgamation<'a, PublicParts, PrimaryRole, ()>> for PrimaryKeyAmalgamation<'a, UnspecifiedParts>
[src]
fn from(p: PrimaryKeyAmalgamation<'a, PublicParts>) -> Self
[src]
impl<'a> From<KeyAmalgamation<'a, PublicParts, PrimaryRole, ()>> for ErasedKeyAmalgamation<'a, UnspecifiedParts>
[src]
fn from(ka: PrimaryKeyAmalgamation<'a, PublicParts>) -> Self
[src]
impl<'a> From<KeyAmalgamation<'a, PublicParts, SubordinateRole, ()>> for SubordinateKeyAmalgamation<'a, UnspecifiedParts>
[src]
fn from(p: SubordinateKeyAmalgamation<'a, PublicParts>) -> Self
[src]
impl<'a> From<KeyAmalgamation<'a, PublicParts, SubordinateRole, ()>> for ErasedKeyAmalgamation<'a, UnspecifiedParts>
[src]
fn from(ka: SubordinateKeyAmalgamation<'a, PublicParts>) -> Self
[src]
impl<'a> From<KeyAmalgamation<'a, PublicParts, UnspecifiedRole, bool>> for ErasedKeyAmalgamation<'a, UnspecifiedParts>
[src]
fn from(p: ErasedKeyAmalgamation<'a, PublicParts>) -> Self
[src]
impl<'a> From<KeyAmalgamation<'a, SecretParts, PrimaryRole, ()>> for PrimaryKeyAmalgamation<'a, PublicParts>
[src]
fn from(p: PrimaryKeyAmalgamation<'a, SecretParts>) -> Self
[src]
impl<'a> From<KeyAmalgamation<'a, SecretParts, PrimaryRole, ()>> for PrimaryKeyAmalgamation<'a, UnspecifiedParts>
[src]
fn from(p: PrimaryKeyAmalgamation<'a, SecretParts>) -> Self
[src]
impl<'a> From<KeyAmalgamation<'a, SecretParts, PrimaryRole, ()>> for ErasedKeyAmalgamation<'a, PublicParts>
[src]
fn from(ka: PrimaryKeyAmalgamation<'a, SecretParts>) -> Self
[src]
impl<'a> From<KeyAmalgamation<'a, SecretParts, PrimaryRole, ()>> for ErasedKeyAmalgamation<'a, UnspecifiedParts>
[src]
fn from(ka: PrimaryKeyAmalgamation<'a, SecretParts>) -> Self
[src]
impl<'a> From<KeyAmalgamation<'a, SecretParts, SubordinateRole, ()>> for SubordinateKeyAmalgamation<'a, PublicParts>
[src]
fn from(p: SubordinateKeyAmalgamation<'a, SecretParts>) -> Self
[src]
impl<'a> From<KeyAmalgamation<'a, SecretParts, SubordinateRole, ()>> for SubordinateKeyAmalgamation<'a, UnspecifiedParts>
[src]
fn from(p: SubordinateKeyAmalgamation<'a, SecretParts>) -> Self
[src]
impl<'a> From<KeyAmalgamation<'a, SecretParts, SubordinateRole, ()>> for ErasedKeyAmalgamation<'a, PublicParts>
[src]
fn from(ka: SubordinateKeyAmalgamation<'a, SecretParts>) -> Self
[src]
impl<'a> From<KeyAmalgamation<'a, SecretParts, SubordinateRole, ()>> for ErasedKeyAmalgamation<'a, UnspecifiedParts>
[src]
fn from(ka: SubordinateKeyAmalgamation<'a, SecretParts>) -> Self
[src]
impl<'a> From<KeyAmalgamation<'a, SecretParts, UnspecifiedRole, bool>> for ErasedKeyAmalgamation<'a, PublicParts>
[src]
fn from(p: ErasedKeyAmalgamation<'a, SecretParts>) -> Self
[src]
impl<'a> From<KeyAmalgamation<'a, SecretParts, UnspecifiedRole, bool>> for ErasedKeyAmalgamation<'a, UnspecifiedParts>
[src]
fn from(p: ErasedKeyAmalgamation<'a, SecretParts>) -> Self
[src]
impl<'a> From<KeyAmalgamation<'a, UnspecifiedParts, PrimaryRole, ()>> for PrimaryKeyAmalgamation<'a, PublicParts>
[src]
fn from(p: PrimaryKeyAmalgamation<'a, UnspecifiedParts>) -> Self
[src]
impl<'a> From<KeyAmalgamation<'a, UnspecifiedParts, PrimaryRole, ()>> for ErasedKeyAmalgamation<'a, PublicParts>
[src]
fn from(ka: PrimaryKeyAmalgamation<'a, UnspecifiedParts>) -> Self
[src]
impl<'a> From<KeyAmalgamation<'a, UnspecifiedParts, SubordinateRole, ()>> for SubordinateKeyAmalgamation<'a, PublicParts>
[src]
fn from(p: SubordinateKeyAmalgamation<'a, UnspecifiedParts>) -> Self
[src]
impl<'a> From<KeyAmalgamation<'a, UnspecifiedParts, SubordinateRole, ()>> for ErasedKeyAmalgamation<'a, PublicParts>
[src]
fn from(ka: SubordinateKeyAmalgamation<'a, UnspecifiedParts>) -> Self
[src]
impl<'a> From<KeyAmalgamation<'a, UnspecifiedParts, UnspecifiedRole, bool>> for ErasedKeyAmalgamation<'a, PublicParts>
[src]
fn from(p: ErasedKeyAmalgamation<'a, UnspecifiedParts>) -> Self
[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]
P: 'a + KeyParts,
R: 'a + KeyRole,
R2: Copy,
fn from(vka: ValidKeyAmalgamation<'a, P, R, R2>) -> Self
[src]
impl<'a> TryFrom<&'a KeyAmalgamation<'a, PublicParts, PrimaryRole, ()>> for &'a PrimaryKeyAmalgamation<'a, SecretParts>
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(p: &'a PrimaryKeyAmalgamation<'a, PublicParts>) -> Result<Self>
[src]
impl<'a> TryFrom<&'a KeyAmalgamation<'a, PublicParts, SubordinateRole, ()>> for &'a SubordinateKeyAmalgamation<'a, SecretParts>
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(p: &'a SubordinateKeyAmalgamation<'a, PublicParts>) -> Result<Self>
[src]
impl<'a> TryFrom<&'a KeyAmalgamation<'a, PublicParts, UnspecifiedRole, bool>> for &'a ErasedKeyAmalgamation<'a, SecretParts>
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(p: &'a ErasedKeyAmalgamation<'a, PublicParts>) -> Result<Self>
[src]
impl<'a> TryFrom<&'a KeyAmalgamation<'a, UnspecifiedParts, PrimaryRole, ()>> for &'a PrimaryKeyAmalgamation<'a, SecretParts>
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(p: &'a PrimaryKeyAmalgamation<'a, UnspecifiedParts>) -> Result<Self>
[src]
impl<'a> TryFrom<&'a KeyAmalgamation<'a, UnspecifiedParts, SubordinateRole, ()>> for &'a SubordinateKeyAmalgamation<'a, SecretParts>
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(
p: &'a SubordinateKeyAmalgamation<'a, UnspecifiedParts>
) -> Result<Self>
[src]
p: &'a SubordinateKeyAmalgamation<'a, UnspecifiedParts>
) -> Result<Self>
impl<'a> TryFrom<&'a KeyAmalgamation<'a, UnspecifiedParts, UnspecifiedRole, bool>> for &'a ErasedKeyAmalgamation<'a, SecretParts>
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(p: &'a ErasedKeyAmalgamation<'a, UnspecifiedParts>) -> Result<Self>
[src]
impl<'a, P, P2> TryFrom<KeyAmalgamation<'a, P, UnspecifiedRole, bool>> for PrimaryKeyAmalgamation<'a, P2> where
P: 'a + KeyParts,
P2: 'a + KeyParts,
[src]
P: 'a + KeyParts,
P2: 'a + KeyParts,
type Error = Error
The type returned in the event of a conversion error.
fn try_from(ka: ErasedKeyAmalgamation<'a, P>) -> Result<Self>
[src]
impl<'a, P, P2> TryFrom<KeyAmalgamation<'a, P, UnspecifiedRole, bool>> for SubordinateKeyAmalgamation<'a, P2> where
P: 'a + KeyParts,
P2: 'a + KeyParts,
[src]
P: 'a + KeyParts,
P2: 'a + KeyParts,
type Error = Error
The type returned in the event of a conversion error.
fn try_from(ka: ErasedKeyAmalgamation<'a, P>) -> Result<Self>
[src]
impl<'a> TryFrom<KeyAmalgamation<'a, PublicParts, PrimaryRole, ()>> for PrimaryKeyAmalgamation<'a, SecretParts>
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(p: PrimaryKeyAmalgamation<'a, PublicParts>) -> Result<Self>
[src]
impl<'a> TryFrom<KeyAmalgamation<'a, PublicParts, SubordinateRole, ()>> for SubordinateKeyAmalgamation<'a, SecretParts>
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(p: SubordinateKeyAmalgamation<'a, PublicParts>) -> Result<Self>
[src]
impl<'a> TryFrom<KeyAmalgamation<'a, PublicParts, UnspecifiedRole, bool>> for ErasedKeyAmalgamation<'a, SecretParts>
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(p: ErasedKeyAmalgamation<'a, PublicParts>) -> Result<Self>
[src]
impl<'a> TryFrom<KeyAmalgamation<'a, UnspecifiedParts, PrimaryRole, ()>> for PrimaryKeyAmalgamation<'a, SecretParts>
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(p: PrimaryKeyAmalgamation<'a, UnspecifiedParts>) -> Result<Self>
[src]
impl<'a> TryFrom<KeyAmalgamation<'a, UnspecifiedParts, SubordinateRole, ()>> for SubordinateKeyAmalgamation<'a, SecretParts>
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(p: SubordinateKeyAmalgamation<'a, UnspecifiedParts>) -> Result<Self>
[src]
impl<'a> TryFrom<KeyAmalgamation<'a, UnspecifiedParts, UnspecifiedRole, bool>> for ErasedKeyAmalgamation<'a, SecretParts>
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(p: ErasedKeyAmalgamation<'a, UnspecifiedParts>) -> Result<Self>
[src]
Auto Trait Implementations
impl<'a, P, R, R2> RefUnwindSafe for KeyAmalgamation<'a, P, R, R2> where
P: RefUnwindSafe,
R: RefUnwindSafe,
R2: RefUnwindSafe,
P: RefUnwindSafe,
R: RefUnwindSafe,
R2: RefUnwindSafe,
impl<'a, P, R, R2> Send for KeyAmalgamation<'a, P, R, R2> where
P: Sync,
R: Sync,
R2: Send,
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,
P: Sync,
R: Sync,
R2: Sync,
impl<'a, P, R, R2> Unpin for KeyAmalgamation<'a, P, R, R2> where
R2: Unpin,
R2: Unpin,
impl<'a, P, R, R2> UnwindSafe for KeyAmalgamation<'a, P, R, R2> where
P: RefUnwindSafe,
R: RefUnwindSafe,
R2: UnwindSafe,
P: RefUnwindSafe,
R: RefUnwindSafe,
R2: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,