Skip to main content

Context

Struct Context 

Source
pub struct Context<'scope, 'model, 'document> { /* private fields */ }
Expand description

Short borrowed selection for one original child. It cannot escape the iterative walk; its returned binding may retain original bytes/path facts.

Implementations§

Source§

impl<'m, 'd> Context<'_, 'm, 'd>

Source

pub fn signer(&self) -> &SignerInfo<'d>

Original child used to choose its certificate/provider, without reparsing.

Source

pub fn check<'a, 'p, P>( &'a self, provider: &'a P, certificate: &Certificate<'d>, path: &'p CheckedPath<'d>, ) -> Result<Binding<'m, 'd, 'p>, CheckError<P::Error>>
where P: SignatureProvider<'a> + AsnDigest<'a>, 'd: 'a,

Checks exactly this parent’s signature octets through the shared CMS counter scope, original attrs and selected provider. The application only selects certificate/path/provider; it cannot supply a replacement payload or a writable successful binding. No plain counter is required to carry the root’s content-type/signing-time/ESS baseline fields. RFC5652 §11.4 and EN319122-1 §5.2.7 define this input and placement. https://www.rfc-editor.org/rfc/rfc5652#section-11.4

Auto Trait Implementations§

§

impl<'scope, 'model, 'document> !RefUnwindSafe for Context<'scope, 'model, 'document>

§

impl<'scope, 'model, 'document> !Send for Context<'scope, 'model, 'document>

§

impl<'scope, 'model, 'document> !Sync for Context<'scope, 'model, 'document>

§

impl<'scope, 'model, 'document> !UnwindSafe for Context<'scope, 'model, 'document>

§

impl<'scope, 'model, 'document> Freeze for Context<'scope, 'model, 'document>

§

impl<'scope, 'model, 'document> Unpin for Context<'scope, 'model, 'document>

§

impl<'scope, 'model, 'document> UnsafeUnpin for Context<'scope, 'model, 'document>

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.