summaryrefslogtreecommitdiffstats
path: root/openpgp/src/cert/amalgamation/key.rs
diff options
context:
space:
mode:
Diffstat (limited to 'openpgp/src/cert/amalgamation/key.rs')
-rw-r--r--openpgp/src/cert/amalgamation/key.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/openpgp/src/cert/amalgamation/key.rs b/openpgp/src/cert/amalgamation/key.rs
index 7071829e..d3dc085f 100644
--- a/openpgp/src/cert/amalgamation/key.rs
+++ b/openpgp/src/cert/amalgamation/key.rs
@@ -449,6 +449,11 @@ pub struct KeyAmalgamation<'a, P, R, R2>
ca: ComponentAmalgamation<'a, Key<P, R>>,
primary: R2,
}
+assert_send_and_sync!(KeyAmalgamation<'_, P, R, R2>,
+ P: key::KeyParts,
+ R: key::KeyRole,
+ R2
+);
// derive(Clone) doesn't work with generic parameters that don't
// implement clone. But, we don't need to require that C implements
@@ -942,6 +947,11 @@ pub struct ValidKeyAmalgamation<'a, P, R, R2>
// The binding signature at time `time`. (This is just a cache.)
binding_signature: &'a Signature,
}
+assert_send_and_sync!(ValidKeyAmalgamation<'_, P, R, R2>,
+ P: key::KeyParts,
+ R: key::KeyRole,
+ R2: Copy
+);
/// A Valid primary Key, and its associated data.
///