pub struct Node {
pub id: String,
pub api_addr: String,
pub raft_addr: String,
pub voter: bool,
pub reachable: bool,
pub leader: bool,
pub time: f64,
pub error: Option<String>,
}
Expand description
A node in the rqlite cluster.
Fields§
§id: String
The unique identifier for the node.
api_addr: String
The address of the node’s API.
raft_addr: String
The address of the node’s Raft service.
voter: bool
If the node is a voter.
reachable: bool
If the node is reachable.
leader: bool
If the node is the leader.
time: f64
Latency to the node.
error: Option<String>
If there was an error reaching the node, this will contain the error message.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Node
impl<'de> Deserialize<'de> for Node
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Node
impl RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnwindSafe for Node
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more