Trait tetsy_hash_fetch::HashFetch [−][src]
API for fetching by hash.
Required methods
fn fetch(
&self,
hash: H256,
abort: Abort,
on_done: Box<dyn Fn(Result<PathBuf, Error>) + Send>
)
[src]
&self,
hash: H256,
abort: Abort,
on_done: Box<dyn Fn(Result<PathBuf, Error>) + Send>
)
Fetch hash-addressed content. Parameters:
hash
- content hashon_done
- callback function invoked when the content is ready (or there was error during fetch)
This function may fail immediately when fetch cannot be initialized or content cannot be resolved.