Trait relay_utils::relay_loop::Client
source · pub trait Client: 'static + Clone + Send + Sync {
type Error: 'static + Debug + MaybeConnectionError + Send + Sync;
// Required method
fn reconnect<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
// Provided method
fn reconnect_until_success<'life0, 'async_trait>(
&'life0 mut self,
delay: Duration,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait { ... }
}
Expand description
Basic blockchain client from relay perspective.
Required Associated Types§
Required Methods§
Provided Methods§
Object Safety§
This trait is not object safe.