Trait forge::Validator

source ·
pub trait Validator: Node {
    // Provided methods
    fn check_connectivity(&self, expected_peers: usize) -> Result<bool> { ... }
    fn wait_for_connectivity(
        &self,
        expected_peers: usize,
        deadline: Instant
    ) -> Result<()> { ... }
}
Expand description

Trait used to represent a running Validator

Provided Methods§

source

fn check_connectivity(&self, expected_peers: usize) -> Result<bool>

source

fn wait_for_connectivity( &self, expected_peers: usize, deadline: Instant ) -> Result<()>

Implementors§