pub trait Validator: Node + Sync {
fn check_connectivity<'life0, 'async_trait>(
&'life0 self,
expected_peers: usize
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait,
{ ... }
fn wait_for_connectivity<'life0, 'async_trait>(
&'life0 self,
expected_peers: usize,
deadline: Instant
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait,
{ ... }
}Expand description
Trait used to represent a running Validator