[][src]Trait sequoia_openpgp::cert::amalgamation::ValidateAmalgamation

pub trait ValidateAmalgamation<'a, C: 'a> {
    type V;
    fn with_policy<T>(self, policy: &'a dyn Policy, time: T) -> Result<Self::V>
    where
        T: Into<Option<SystemTime>>,
        Self: Sized
; }

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.

Loading content...

Required methods

fn with_policy<T>(self, policy: &'a dyn Policy, time: T) -> Result<Self::V> where
    T: Into<Option<SystemTime>>,
    Self: Sized

Changes the amalgamation's policy.

If time is None, the current time is used.

Loading content...

Implementors

impl<'a, C> ValidateAmalgamation<'a, C> for ComponentAmalgamation<'a, C>[src]

type V = ValidComponentAmalgamation<'a, C>

impl<'a, C> ValidateAmalgamation<'a, C> for ValidComponentAmalgamation<'a, C>[src]

type V = Self

impl<'a, P> ValidateAmalgamation<'a, Key<P, PrimaryRole>> for PrimaryKeyAmalgamation<'a, P> where
    P: 'a + KeyParts
[src]

type V = ValidPrimaryKeyAmalgamation<'a, P>

impl<'a, P> ValidateAmalgamation<'a, Key<P, PrimaryRole>> for ValidPrimaryKeyAmalgamation<'a, P> where
    P: 'a + KeyParts
[src]

type V = Self

impl<'a, P> ValidateAmalgamation<'a, Key<P, SubordinateRole>> for SubordinateKeyAmalgamation<'a, P> where
    P: 'a + KeyParts
[src]

type V = ValidSubordinateKeyAmalgamation<'a, P>

impl<'a, P> ValidateAmalgamation<'a, Key<P, SubordinateRole>> for ValidSubordinateKeyAmalgamation<'a, P> where
    P: 'a + KeyParts
[src]

type V = Self

impl<'a, P> ValidateAmalgamation<'a, Key<P, UnspecifiedRole>> for ErasedKeyAmalgamation<'a, P> where
    P: 'a + KeyParts
[src]

type V = ValidErasedKeyAmalgamation<'a, P>

impl<'a, P> ValidateAmalgamation<'a, Key<P, UnspecifiedRole>> for ValidErasedKeyAmalgamation<'a, P> where
    P: 'a + KeyParts
[src]

type V = Self

Loading content...