Skip to main content

AsyncComputedInput

Trait AsyncComputedInput 

Source
pub trait AsyncComputedInput<P, PE> {
    type Error;

    // Required method
    fn compute<'context: 'scope, 'reader, 'document, 'scope>(
        &'scope mut self,
        context: &'context ImprintContext<'reader, 'document, P, Self::Error>,
    ) -> impl Future<Output = Result<ImprintProof<'context>, InputFailure<Self::Error>>>
       where P: AsnDigest<'document, Error = PE>;
}
Expand description

A computed input with asynchronous source acquisition. It uses the same closed imprint states/proofs and cannot substitute a caller digest value.

Required Associated Types§

Source

type Error

Original source/recipe cause, separate from callback refusal.

Required Methods§

Source

fn compute<'context: 'scope, 'reader, 'document, 'scope>( &'scope mut self, context: &'context ImprintContext<'reader, 'document, P, Self::Error>, ) -> impl Future<Output = Result<ImprintProof<'context>, InputFailure<Self::Error>>>
where P: AsnDigest<'document, Error = PE>,

Completes a scoped input with a proof from this exact imprint context.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<P, PE, S: AsyncSource> AsyncComputedInput<P, PE> for AsyncRawInput<'_, S>