Struct tk_cantal::Peer [] [src]

pub struct Peer {
    pub id: String,
    pub hostname: String,
    pub name: String,
    pub primary_addr: Option<String>,
    pub addresses: Vec<String>,
    pub known_since: SystemTime,
    pub last_report: Option<SystemTime>,
    pub probe_time: Option<SystemTime>,
    pub last_report_direct: Option<SystemTime>,
    // some fields omitted
}

Info about the peer

We currently include only a subset of data reported by cantal here. Mostly things that are unlikely to change in future. This will be fixed when cantal grows stable API.

Fields

Host identifier (machine-id)

Hostname of the host

Name of the host, usually FQDN

Primary IP address (which works of pings, etc)

The list of all IP addresses of the host

Time when peer became known to this host

Time of last report across the network

Last time probe (ping) sent

This is useful to check if last_report is too outdated

Last report directly to this host

Trait Implementations

impl Debug for Peer
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Peer

impl Sync for Peer