pub type SnapshotResult<T> = Result<T, SnapshotError>;
Expand description
Specialized Result
type for snapshot operations.
This type alias simplifies error handling throughout the snapshot module by providing a consistent return type for all operations.
§Example
use hopr_chain_indexer::snapshot::error::SnapshotResult;
async fn download_file(url: &str) -> SnapshotResult<Vec<u8>> {
// Implementation that may return various SnapshotError variants
Ok(vec![])
}
Aliased Type§
pub enum SnapshotResult<T> {
Ok(T),
Err(SnapshotError),
}