pub trait NodeExt: Node {
    fn rest_client(&self) -> RestClient { ... }
    fn inspection_client(&self) -> InspectionClient { ... }
    fn restart<'life0, 'async_trait>(
        &'life0 mut self
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: Send + 'async_trait
, { ... } fn get_metric<'life0, 'life1, 'async_trait>(
        &'life0 self,
        metric_name: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<Option<i64>>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: Sync + 'async_trait
, { ... } fn get_metric_with_fields<'life0, 'life1, 'async_trait>(
        &'life0 self,
        metric_name: &'life1 str,
        fields: HashMap<String, String>
    ) -> Pin<Box<dyn Future<Output = Result<Option<i64>>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: Sync + 'async_trait
, { ... } fn get_connected_peers<'life0, 'life1, 'async_trait>(
        &'life0 self,
        network_id: NetworkId,
        direction: Option<&'life1 str>
    ) -> Pin<Box<dyn Future<Output = Result<Option<i64>>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: Sync + 'async_trait
, { ... } fn liveness_check<'life0, 'async_trait>(
        &'life0 self,
        seconds: u64
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: Sync + 'async_trait
, { ... } fn wait_until_healthy<'life0, 'async_trait>(
        &'life0 mut self,
        deadline: Instant
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: Send + 'async_trait
, { ... } }

Provided Methods

Return REST API client of this Node

Return an InspectionClient for this Node

Restarts this Node by calling Node::Stop followed by Node::Start

Query a Metric for from this Node

Implementors