Skip to main content

Models

Struct Models 

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

Original token models borrow retained Contents; their material is parsed once, independently of timestamp arithmetic, imprint, authority or trust.

Implementations§

Source§

impl<'d, D: Copy + Eq, G: Copy + Eq> Models<'d, '_, '_, '_, D, G>

Source

pub fn reader<'q, W: Work + 'q>( &'q self, ordinal: usize, operation: &W, ) -> Result<Option<Reader<'q>>, ErrorOf<Infallible>>

Reopens the already parsed envelope’s original source context under this operation. It performs no token or certificate reparse.

Source

pub fn revocations<'q>( &'q self, ordinal: usize, operation: &'q impl Work, ) -> Result<Option<impl Iterator<Item = Result<&'q Revocation<'d>>> + 'q>>

Visits every carried choice with current/original admission before access. The first refusal is returned once and permanently fuses it.

Source

pub fn token( &self, ordinal: usize, operation: &impl Work, ) -> Result<Option<&Token<'_>>>

Original parsed token only; absence retains an explicit failed source.

Source

pub fn failure( &self, ordinal: usize, operation: &impl Work, ) -> Result<Option<&Fault>>

Original source/parser failure for this exact occurrence, when present.

Source

pub fn revision(&self) -> Option<usize>

Selected historical revision, or the full current source window.

Source

pub fn location(&self, ordinal: usize) -> Option<Location>

Actual original PDF dictionary location at this source ordinal.

Source

pub fn requirements(&self) -> &TimestampRequirements<Node, D, G, Pades>

Same complete original root/counter/PDF obligations used for this pool.

Auto Trait Implementations§

§

impl<'v, 'r, 'a, 's, D, G> !Freeze for Models<'v, 'r, 'a, 's, D, G>

§

impl<'v, 'r, 'a, 's, D, G> !RefUnwindSafe for Models<'v, 'r, 'a, 's, D, G>

§

impl<'v, 'r, 'a, 's, D, G> !Send for Models<'v, 'r, 'a, 's, D, G>

§

impl<'v, 'r, 'a, 's, D, G> !Sync for Models<'v, 'r, 'a, 's, D, G>

§

impl<'v, 'r, 'a, 's, D, G> !UnwindSafe for Models<'v, 'r, 'a, 's, D, G>

§

impl<'v, 'r, 'a, 's, D, G> Forget for Models<'v, 'r, 'a, 's, D, G>

§

impl<'v, 'r, 'a, 's, D, G> Unpin for Models<'v, 'r, 'a, 's, D, G>
where &'v Sources<'r, 'a, 's, D, G>: Unpin,

§

impl<'v, 'r, 'a, 's, D, G> UnsafeUnpin for Models<'v, 'r, 'a, 's, D, G>
where &'v Sources<'r, 'a, '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.