Skip to main content

Checks

Struct Checks 

Source
pub struct Checks<'a, 'v, 's, S: RangeSource> { /* private fields */ }
Expand description

Mathematical checks privately bound to the actual input member chosen by this driver. A separately checked arbitrary source cannot create this type.

Implementations§

Source§

impl<'a, 'v, 's, S: RangeSource> Checks<'a, 'v, 's, S>

Source

pub fn checks(&self) -> &DocumentChecks<'a>

Every actually executed prepared signer answer, without copying.

Source

pub fn payload(&self) -> MemberId<S::Document, S::Generation>

Exact original payload or manifest consumed by this batch.

Source

pub fn bind<'provider, 'r, 'm, 'd, 'p, P: AsnDigest<'provider>>( &self, prepared: &'r Preparation<'m, 'd>, checked: &Checked<'_>, certificate: &'p Certificate<'d>, path: Option<&'p CheckedPath<'d>>, provider: &'provider P, parent: &Reader<'provider>, ) -> Result<Signer<'r, 'm, 'd, 'p, 'v, 's, S>, BindError<S::Error, P::Error>>
where 'd: 'provider,

Runs the ONE existing CAdES SID/key/ESS/path binder on a check that this original member pass actually produced. No supplied successful boolean or separately checked arbitrary payload can create the linked signer.

Auto Trait Implementations§

§

impl<'a, 'v, 's, S> !Freeze for Checks<'a, 'v, 's, S>

§

impl<'a, 'v, 's, S> !RefUnwindSafe for Checks<'a, 'v, 's, S>

§

impl<'a, 'v, 's, S> !Send for Checks<'a, 'v, 's, S>

§

impl<'a, 'v, 's, S> !Sync for Checks<'a, 'v, 's, S>

§

impl<'a, 'v, 's, S> !UnwindSafe for Checks<'a, 'v, 's, S>

§

impl<'a, 'v, 's, S> Forget for Checks<'a, 'v, 's, S>

§

impl<'a, 'v, 's, S> Unpin for Checks<'a, 'v, 's, S>
where &'a Content<'v, 's, S>: Unpin, MemberId<<S as RangeSource>::Document, <S as RangeSource>::Generation>: Unpin,

§

impl<'a, 'v, 's, S> UnsafeUnpin for Checks<'a, 'v, 's, S>

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.