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§
Required Methods§
Sourcefn 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>,
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".