pub trait SnapSyncContext: Send {
// Required methods
fn head(&self) -> Result<u64, SnapSyncError>;
fn wait_for_progress(
&mut self,
head: u64,
) -> impl Future<Output = bool> + Send;
// Provided method
fn finalized(&self) -> Option<u64> { ... }
}Expand description
What a SnapBootstrap needs to know about the chain and peers it synchronizes from.
Required Methods§
Sourcefn head(&self) -> Result<u64, SnapSyncError>
fn head(&self) -> Result<u64, SnapSyncError>
Highest block whose canonical header is downloaded.
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".