ic-agent 0.47.2

Agent library to communicate with the Internet Computer, following the Public Specification.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::agent::route_provider::dynamic_routing::{health_check::HealthCheckStatus, node::Node};

/// Represents a message with fetched nodes.
#[derive(Debug, Clone)]
pub struct FetchedNodes {
    /// The fetched nodes.
    pub nodes: Vec<Node>,
}

/// Represents a message with the health state of a node.
pub struct NodeHealthState {
    /// The node.
    pub node: Node,
    /// The health state of the node.
    pub health: HealthCheckStatus,
}