[][src]Struct rpki::cert::Validity

pub struct Validity { /* fields omitted */ }

Methods

impl Validity[src]

pub fn new(not_before: Time, not_after: Time) -> Self[src]

pub fn from_duration(duration: Duration) -> Self[src]

pub fn from_secs(secs: i64) -> Self[src]

pub fn not_before(&self) -> Time[src]

pub fn not_after(&self) -> Time[src]

pub fn take_from<S: Source>(cons: &mut Constructed<S>) -> Result<Self, S::Err>[src]

pub fn validate(&self) -> Result<(), ValidationError>[src]

pub fn validate_at(&self, now: Time) -> Result<(), ValidationError>[src]

pub fn encode<'a>(&'a self) -> impl Values + 'a[src]

Trait Implementations

impl PartialEq<Validity> for Validity[src]

impl Clone for Validity[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Eq for Validity[src]

impl Debug for Validity[src]

impl Hash for Validity[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

Auto Trait Implementations

impl Send for Validity

impl Sync for Validity

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.