Trait cosm_utils::clients::tendermint_rpc::ClientCompat
source · pub trait ClientCompat: Client + Sized {
// Required methods
fn get_compat<'life0, 'async_trait>(
endpoint_url: &'life0 str
) -> Pin<Box<dyn Future<Output = Result<Self, ChainError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_persistent_compat<'life0, 'async_trait>(
endpoint_url: &'life0 str
) -> Pin<Box<dyn Future<Output = Result<Self, ChainError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
// Provided method
fn query_compat_mode<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<CompatMode, ChainError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait { ... }
}Required Methods§
fn get_compat<'life0, 'async_trait>( endpoint_url: &'life0 str ) -> Pin<Box<dyn Future<Output = Result<Self, ChainError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
sourcefn get_persistent_compat<'life0, 'async_trait>(
endpoint_url: &'life0 str
) -> Pin<Box<dyn Future<Output = Result<Self, ChainError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_persistent_compat<'life0, 'async_trait>( endpoint_url: &'life0 str ) -> Pin<Box<dyn Future<Output = Result<Self, ChainError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
WARNING: This function creates a global static to remember the compat mode for convenience with repeated calls. Once the mode is set, it cannot not be changed no matter how many times you call it.