Skip to main content

SingleResponse

Struct SingleResponse 

Source
pub struct SingleResponse<'a> { /* private fields */ }
Expand description

One signed assertion with deferred extension semantics.

Implementations§

Source§

impl SingleResponse<'_>

Source

pub fn update_window( &self, now: Reading, utc: &LeapTable<'_>, execution: &Memory, ) -> Result<UpdateWindow>

Compare update labels using explicit UTC facts and the current account. RFC6960 §3.2(5) leaves “sufficiently recent” to the client’s acceptance criteria; §3.2(6) requires nextUpdate, when present, greater than now. This result never supplies a maximum age, clock or clock-skew allowance. https://www.rfc-editor.org/rfc/rfc6960#section-3.2

Source§

impl<'a> SingleResponse<'a>

Source

pub fn check_extensions( &self, execution: &Memory, ) -> Result<ExtensionProcessing<'a>>

Process this assertion’s critical demands, independently of unrelated assertions. No optional single-extension semantics are advertised by this core, so unknown critical demands remain unsupported facts.

Source§

impl<'a> SingleResponse<'a>

Source

pub fn id(&self) -> CertId<'a>

Original certificate identity.

Source

pub fn status(&self) -> Status

Unauthenticated status assertion.

Source

pub fn revocation_relation( &self, now: Reading, utc: &LeapTable<'_>, execution: &Memory, ) -> Result<Option<Relation>>

UTC-qualified recorded revocation time, when this assertion is revoked. This never decides whether a future date may be ignored by the product.

Source

pub fn this_update(&self) -> Time

Most recent time the responder knew this status to be correct.

Source

pub fn next_update(&self) -> Option<Time>

Recommended update boundary, absent when newer information is always available. No lifetime is invented for an absent value.

Source

pub fn extensions(&self) -> &Extensions<'a>

Deferred extensions, still using their source parser and current account.

Source

pub fn span(&self) -> Span

Original assertion location.

Trait Implementations§

Source§

impl<'a> Debug for SingleResponse<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'a> !Freeze for SingleResponse<'a>

§

impl<'a> !RefUnwindSafe for SingleResponse<'a>

§

impl<'a> !Send for SingleResponse<'a>

§

impl<'a> !Sync for SingleResponse<'a>

§

impl<'a> !UnwindSafe for SingleResponse<'a>

§

impl<'a> Unpin for SingleResponse<'a>

§

impl<'a> UnsafeUnpin for SingleResponse<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.