Skip to main content

Parsed

Struct Parsed 

Source
pub struct Parsed<'v, 's, D, G> { /* private fields */ }
Expand description

One parse of every retained material stream. Models borrow the actual Validation owner; no second DER grammar or copied certificate is introduced.

Implementations§

Source§

impl<'v, D: Copy + Eq, G: Copy + Eq> Parsed<'v, '_, D, G>

Source

pub fn all_vri_material_in_dss(&self) -> bool

Historical VRI inclusion independently of individual value syntax.

Source

pub fn values(&self) -> &[Value<'v>]

All parsed values in the immutable owning Validation item order.

Source

pub fn all_values_readable(&self) -> bool

Every known whole value and basic OCSP body was readable. This is independent of successful wire status, authentication or freshness.

Source

pub fn index<'q, 'operation, S: RangeSource<Document = D, Generation = G>>( &'q self, signature: Signature<'_, '_, D, G>, query: &Query<'operation, '_, S>, ) -> Result<MaterialIndex<'q, D, G, Execution<'operation>>, IndexError<Node>>
where 'v: 'q,

Builds the common index from actual original occurrences, preserving the whole OCSP envelope and its independently parsed basic payload.

Source§

impl<'v, D: Copy + Eq, G: Copy + Eq> Parsed<'v, '_, D, G>

Source

pub fn bind_status_vri<'b, 'p, P: AsnDigest<'p>>( &'b self, item: usize, provider: &'p P, operation: &impl Work, ) -> Result<Option<StatusBinding<'b, 'v>>, StatusError<'b, P::Error>>

Selects a status VRI by the SHA-1 of a primitive BER OCTET STRING containing its original signature octets (EN319142-1 §5.4.2.2(b)). The shortest definite length is also BER. No signature bytes are copied and no status envelope or signature is reparsed. https://www.etsi.org/deliver/etsi_en/319100_319199/31914201/01.02.01_60/en_31914201v010201p.pdf

§Panics

Panics if the retained original file extent is internally invalid.

Source§

impl<'v, 's, D: Copy + Eq, G: Copy + Eq> Parsed<'v, 's, D, G>

Source

pub fn bind_signature_vri<'b, 'a, 'p, P: AsnDigest<'p>>( &'b self, root: &'b Container<'a, 's, D, G>, provider: &'p P, operation: &impl Work, ) -> Result<Option<Binding<'b, 'v, 'a, 's, D, G>>, BindingError<P::Error>>

Selects this signature’s actual optional VRI. A named VRI for another signature remains in the source census but cannot bind to this root.

Auto Trait Implementations§

§

impl<'v, 's, D, G> !Freeze for Parsed<'v, 's, D, G>

§

impl<'v, 's, D, G> !RefUnwindSafe for Parsed<'v, 's, D, G>

§

impl<'v, 's, D, G> !Send for Parsed<'v, 's, D, G>

§

impl<'v, 's, D, G> !Sync for Parsed<'v, 's, D, G>

§

impl<'v, 's, D, G> !UnwindSafe for Parsed<'v, 's, D, G>

§

impl<'v, 's, D, G> Forget for Parsed<'v, 's, D, G>

§

impl<'v, 's, D, G> Unpin for Parsed<'v, 's, D, G>
where &'v Validation<'s, D, G>: Unpin,

§

impl<'v, 's, D, G> UnsafeUnpin for Parsed<'v, 's, D, G>
where &'v Validation<'s, D, G>: UnsafeUnpin,

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.