[−][src]Trait sequoia_openpgp::cert::amalgamation::ValidateAmalgamation
Applies a policy to an amalgamation.
Note: This trait is split off from the Amalgamation
trait, to
reduce code duplication: it is often possible to provide blanket
implementations of Amalgamation
, but the ValidateAmalgamation
trait can only be implemented on more concrete types.
Associated Types
type V
The type returned by with_policy
.
Required methods
fn with_policy<T>(self, policy: &'a dyn Policy, time: T) -> Result<Self::V> where
T: Into<Option<SystemTime>>,
Self: Sized,
T: Into<Option<SystemTime>>,
Self: Sized,
Changes the amalgamation's policy.
If time
is None
, the current time is used.
Implementors
impl<'a, C> ValidateAmalgamation<'a, C> for ComponentAmalgamation<'a, C>
[src]
type V = ValidComponentAmalgamation<'a, C>
fn with_policy<T>(self, policy: &'a dyn Policy, time: T) -> Result<Self::V> where
T: Into<Option<SystemTime>>,
Self: Sized,
[src]
T: Into<Option<SystemTime>>,
Self: Sized,
impl<'a, C> ValidateAmalgamation<'a, C> for ValidComponentAmalgamation<'a, C>
[src]
type V = Self
fn with_policy<T>(self, policy: &'a dyn Policy, time: T) -> Result<Self::V> where
T: Into<Option<SystemTime>>,
Self: Sized,
[src]
T: Into<Option<SystemTime>>,
Self: Sized,
impl<'a, P> ValidateAmalgamation<'a, Key<P, PrimaryRole>> for PrimaryKeyAmalgamation<'a, P> where
P: 'a + KeyParts,
[src]
P: 'a + KeyParts,
type V = ValidPrimaryKeyAmalgamation<'a, P>
fn with_policy<T>(self, policy: &'a dyn Policy, time: T) -> Result<Self::V> where
T: Into<Option<SystemTime>>,
[src]
T: Into<Option<SystemTime>>,
impl<'a, P> ValidateAmalgamation<'a, Key<P, PrimaryRole>> for ValidPrimaryKeyAmalgamation<'a, P> where
P: 'a + KeyParts,
[src]
P: 'a + KeyParts,
type V = Self
fn with_policy<T>(self, policy: &'a dyn Policy, time: T) -> Result<Self::V> where
T: Into<Option<SystemTime>>,
Self: Sized,
[src]
T: Into<Option<SystemTime>>,
Self: Sized,
impl<'a, P> ValidateAmalgamation<'a, Key<P, SubordinateRole>> for SubordinateKeyAmalgamation<'a, P> where
P: 'a + KeyParts,
[src]
P: 'a + KeyParts,
type V = ValidSubordinateKeyAmalgamation<'a, P>
fn with_policy<T>(self, policy: &'a dyn Policy, time: T) -> Result<Self::V> where
T: Into<Option<SystemTime>>,
[src]
T: Into<Option<SystemTime>>,
impl<'a, P> ValidateAmalgamation<'a, Key<P, SubordinateRole>> for ValidSubordinateKeyAmalgamation<'a, P> where
P: 'a + KeyParts,
[src]
P: 'a + KeyParts,
type V = Self
fn with_policy<T>(self, policy: &'a dyn Policy, time: T) -> Result<Self::V> where
T: Into<Option<SystemTime>>,
Self: Sized,
[src]
T: Into<Option<SystemTime>>,
Self: Sized,
impl<'a, P> ValidateAmalgamation<'a, Key<P, UnspecifiedRole>> for ErasedKeyAmalgamation<'a, P> where
P: 'a + KeyParts,
[src]
P: 'a + KeyParts,
type V = ValidErasedKeyAmalgamation<'a, P>
fn with_policy<T>(self, policy: &'a dyn Policy, time: T) -> Result<Self::V> where
T: Into<Option<SystemTime>>,
[src]
T: Into<Option<SystemTime>>,
impl<'a, P> ValidateAmalgamation<'a, Key<P, UnspecifiedRole>> for ValidErasedKeyAmalgamation<'a, P> where
P: 'a + KeyParts,
[src]
P: 'a + KeyParts,
type V = Self
fn with_policy<T>(self, policy: &'a dyn Policy, time: T) -> Result<Self::V> where
T: Into<Option<SystemTime>>,
Self: Sized,
[src]
T: Into<Option<SystemTime>>,
Self: Sized,