Skip to main content

ProofFetcher

Trait ProofFetcher 

Source
pub trait ProofFetcher {
    type Error;

    // Required method
    fn fetch(
        &mut self,
        txid: &str,
        reask: &Reask,
    ) -> Result<Option<Proof>, Self::Error>;
}
Expand description

The host’s proof transport. The crate declares it but never calls it.

Required Associated Types§

Source

type Error

The transport’s own error type.

Required Methods§

Source

fn fetch( &mut self, txid: &str, reask: &Reask, ) -> Result<Option<Proof>, Self::Error>

Execute a scheduled re-ask, with no proof represented explicitly. Competitor hints name the txids the host must also reconcile.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§