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>
impl<'d, D: Copy + Eq, G: Copy + Eq> Models<'d, '_, '_, '_, D, G>
Sourcepub fn reader<'q, W: Work + 'q>(
&'q self,
ordinal: usize,
operation: &W,
) -> Result<Option<Reader<'q>>, ErrorOf<Infallible>>
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.
Sourcepub fn revocations<'q>(
&'q self,
ordinal: usize,
operation: &'q impl Work,
) -> Result<Option<impl Iterator<Item = Result<&'q Revocation<'d>>> + 'q>>
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.
Sourcepub fn token(
&self,
ordinal: usize,
operation: &impl Work,
) -> Result<Option<&Token<'_>>>
pub fn token( &self, ordinal: usize, operation: &impl Work, ) -> Result<Option<&Token<'_>>>
Original parsed token only; absence retains an explicit failed source.
Sourcepub fn failure(
&self,
ordinal: usize,
operation: &impl Work,
) -> Result<Option<&Fault>>
pub fn failure( &self, ordinal: usize, operation: &impl Work, ) -> Result<Option<&Fault>>
Original source/parser failure for this exact occurrence, when present.
Sourcepub fn revision(&self) -> Option<usize>
pub fn revision(&self) -> Option<usize>
Selected historical revision, or the full current source window.
Sourcepub fn location(&self, ordinal: usize) -> Option<Location>
pub fn location(&self, ordinal: usize) -> Option<Location>
Actual original PDF dictionary location at this source ordinal.
Sourcepub fn requirements(&self) -> &TimestampRequirements<Node, D, G, Pades>
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>
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> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more