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) } }