Skip to main content

RecordSource

Trait RecordSource 

Source
pub trait RecordSource {
    // Required method
    fn fetch(&self, txid: Txid) -> Result<Option<RecordPackage>, Error>;
}
Expand description

A data source, not a chain verifier or completeness authority. Implementations must bound their own I/O; the caller’s deadline is checked between callbacks.

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl RecordSource for Client

Fetch data only from the explicitly configured local operator endpoint. This adapter performs no peer or network discovery. The receiving engine independently verifies the package against its own selected headers.

Source§

impl RecordSource for PeerSource