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>
impl<'m, 'd> Context<'_, 'm, 'd>
Sourcepub fn signer(&self) -> &SignerInfo<'d>
pub fn signer(&self) -> &SignerInfo<'d>
Original child used to choose its certificate/provider, without reparsing.
Sourcepub 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,
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> 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