Trait ibc_chain_registry::fetchable::Fetchable

source ·
pub trait Fetchable
where Self: DeserializeOwned,
{ const DESC: &'static str; // Required method fn path(resource: &str) -> PathBuf; // Provided method fn fetch<'async_trait>( chain_name: String, commit: Option<String>, ) -> Pin<Box<dyn Future<Output = Result<Self, RegistryError>> + Send + 'async_trait>> where Self: Send + 'async_trait { ... } }
Expand description

Fetchable represents the basic expectations for external data or resources that can be fetched.

Required Associated Constants§

source

const DESC: &'static str

Required Methods§

source

fn path(resource: &str) -> PathBuf

The path of the fetchable resource.

Provided Methods§

source

fn fetch<'async_trait>( chain_name: String, commit: Option<String>, ) -> Pin<Box<dyn Future<Output = Result<Self, RegistryError>> + Send + 'async_trait>>
where Self: Send + 'async_trait,

Fetches the fetchable resource.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl Fetchable for AssetList

source§

const DESC: &'static str = "asset list"

source§

impl Fetchable for ChainData

source§

const DESC: &'static str = "chain data"

source§

impl Fetchable for IBCPath

source§

const DESC: &'static str = "IBC path"