pub struct PayloadBatch<'a, P: SignatureProvider<'a>> { /* private fields */ }Expand description
A prepared fan-out bound to the digest batch’s selected provider instance.
This is a processing mechanism, not CMS schema, signer selection or trust validation. The caller must resolve and validate every request first.
Implementations§
Source§impl<'a, P: SignatureProvider<'a>> PayloadBatch<'a, P>
impl<'a, P: SignatureProvider<'a>> PayloadBatch<'a, P>
Sourcepub fn prepare<W: Work>(
digests: DigestBatch<'a, P>,
requests: OwnedVec<RawRequest<'a, P>>,
execution: &W,
) -> Result<Self, PayloadError<P::Error>>
pub fn prepare<W: Work>( digests: DigestBatch<'a, P>, requests: OwnedVec<RawRequest<'a, P>>, execution: &W, ) -> Result<Self, PayloadError<P::Error>>
Initializes raw challenges before source I/O, without retaining Work.
No identity/state cloning, provider switching or prehash substitution occurs. Every request’s metadata storage is admitted before its start callback. The callback accounts for its own complete transitive work.
Sourcepub fn run<S: Source, W: Work>(
self,
source: &mut S,
execution: &W,
) -> Result<Completed<'a, P>, PassError<S::Error, P::Error>>
pub fn run<S: Source, W: Work>( self, source: &mut S, execution: &W, ) -> Result<Completed<'a, P>, PassError<S::Error, P::Error>>
Streams once to every digest and raw state, then consumes each once.
Output catalogues are admitted before calling the source. Incomplete source acquisition or any sticky callback refusal returns no completed digests or raw answers, even if other states processed an input prefix.