serf-rpc 0.2.0

A client library for Hashicorp's Serf (https://serf.io)
Documentation
1
2
3
4
5
6
7
8
9
10
11
use crate::{
    protocol::{Coordinate, Member},
    Client, RPCResult,
};

impl Member {
    pub async fn coordinate(&self, client: &Client) -> RPCResult<Option<Coordinate>> {
        let res = client.get_coordinate(&self.name).await?;
        Ok(res.coord)
    }
}