[−][src]Struct rpki::cert::Validity
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(&self) -> 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]
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,