[][src]Trait sequoia_openpgp::cert::components::Amalgamation

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

Represents a component.

Associated Types

type V

The type returned by with_policy.

Loading content...

Required methods

fn cert(&self) -> &'a Cert

Returns the certificate that the component came from.

fn bundle(&self) -> &'a ComponentBundle<C>

Returns this component's bundle.

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> Amalgamation<'a, C> for ComponentAmalgamation<'a, C>[src]

type V = ValidComponentAmalgamation<'a, C>

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

type V = Self

impl<'a, P: 'a + KeyParts> Amalgamation<'a, Key<P, UnspecifiedRole>> for KeyAmalgamation<'a, P>[src]

type V = ValidKeyAmalgamation<'a, P>

impl<'a, P: 'a + KeyParts> Amalgamation<'a, Key<P, UnspecifiedRole>> for ValidKeyAmalgamation<'a, P>[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]

Changes the amalgamation's policy.

If time is None, the current time is used.

impl<'a, P: 'a + KeyParts> Amalgamation<'a, Key<P, UnspecifiedRole>> for ValidPrimaryKeyAmalgamation<'a, P>[src]

type V = Self

Loading content...