pub trait CommitSource {
// Required methods
fn chain(&self) -> Chain;
fn fetch(
&self,
txid: Txid,
cancelled: &AtomicBool,
) -> Result<Option<Vec<u8>>, Error>;
// Provided method
fn probe(&self) -> Option<Result<(), Error>> { ... }
}Expand description
Untrusted auxiliary parent bytes, not a chain verifier. The chain getter reads local configuration without I/O. Each fetch must bound its own I/O; Engine cancellation is cooperative and cannot interrupt a running fetch.
Required Methods§
fn chain(&self) -> Chain
fn fetch( &self, txid: Txid, cancelled: &AtomicBool, ) -> Result<Option<Vec<u8>>, Error>
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".