openpgp: Improve docs.

parent a6ff2539
Pipeline #117278334 passed with stage
in 3 minutes and 40 seconds
......@@ -64,12 +64,13 @@ impl<'a, C> ComponentAmalgamation<'a, C> {
self.bundle.binding_signature(policy, time)
}
/// Sets the reference time for the amalgamation.
/// Sets the policy and the reference time for the amalgamation.
///
/// If `time` is `None`, the current time is used.
///
/// This transforms the `ComponentAmalgamation` into a
/// `ValidComponentAmalgamation`.
/// `ValidComponentAmalgamation`, which exposes additional
/// methods.
pub fn with_policy<T>(self, policy: &'a dyn Policy, time: T)
-> Result<ValidComponentAmalgamation<'a, C>>
where T: Into<Option<time::SystemTime>>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment