Trait relay_substrate_client::guard::Environment
source · pub trait Environment<C>: Send + Sync + 'static {
type Error: Display + Send + Sync + 'static;
// Required method
fn runtime_version<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<RuntimeVersion, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
// Provided methods
fn now(&self) -> Instant { ... }
fn sleep<'life0, 'async_trait>(
&'life0 mut self,
duration: Duration,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait { ... }
fn abort<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait { ... }
}
Expand description
Guards environment.