Skip to main content

DocumentBatch

Struct DocumentBatch 

Source
pub struct DocumentBatch<'operation, 'a, P: SignatureProvider<'a>> { /* private fields */ }
Expand description

Existing verification driver plus the exact original source association. The selected root signers share one payload pass and one digest memo.

Implementations§

Source§

impl<'operation, 'a, P: SignatureProvider<'a>> DocumentBatch<'operation, 'a, P>

Source

pub fn prepare( provider: &'a P, message: &'a SignedData<'a>, requests: OwnedVec<ResolvedSigner<'a, P>>, mode: ContentMode, parent: &'operation Reader<'a>, ) -> Result<Self, CheckError<P::Error>>

Checks container/signer provenance and explicit input mode BEFORE any provider initialization, then delegates to the one existing batch core. Detached source acquisition remains caller-owned; it is never a fallback for a carried document. No candidate selection or trust is performed.

Source

pub fn run_carried( self, ) -> Result<DocumentChecks<'a>, PassError<SourceError, P::Error>>

Consumes the ORIGINAL carried content through the same streaming batch. The caller cannot replace it with a different byte source. Empty carried content remains a real empty input, distinct from absence.

Source

pub fn run_detached<S: Source>( self, source: &mut S, ) -> Result<DocumentChecks<'a>, PassError<S::Error, P::Error>>

Consumes the explicit caller input of the original detached SignedData. This establishes that input’s mathematical agreement with the signed message-digest, not an application claim about where bytes were acquired.

Auto Trait Implementations§

§

impl<'operation, 'a, P> !Freeze for DocumentBatch<'operation, 'a, P>

§

impl<'operation, 'a, P> !RefUnwindSafe for DocumentBatch<'operation, 'a, P>

§

impl<'operation, 'a, P> !Send for DocumentBatch<'operation, 'a, P>

§

impl<'operation, 'a, P> !Sync for DocumentBatch<'operation, 'a, P>

§

impl<'operation, 'a, P> !UnwindSafe for DocumentBatch<'operation, 'a, P>

§

impl<'operation, 'a, P> Unpin for DocumentBatch<'operation, 'a, P>
where Batch<'a, P>: Unpin,

§

impl<'operation, 'a, P> UnsafeUnpin for DocumentBatch<'operation, 'a, P>
where Batch<'a, P>: 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.