Struct garage_rpc::system::NodeStatus
source · pub struct NodeStatus {
pub hostname: String,
pub replication_factor: usize,
pub cluster_layout_version: u64,
pub cluster_layout_staging_hash: Hash,
pub meta_disk_avail: Option<(u64, u64)>,
pub data_disk_avail: Option<(u64, u64)>,
}
Fields§
§hostname: String
Hostname of the node
replication_factor: usize
Replication factor configured on the node
cluster_layout_version: u64
Cluster layout version
cluster_layout_staging_hash: Hash
Hash of cluster layout staging data
meta_disk_avail: Option<(u64, u64)>
Disk usage on partition containing metadata directory (tuple: (avail, total)
)
data_disk_avail: Option<(u64, u64)>
Disk usage on partition containing data directory (tuple: (avail, total)
)
Trait Implementations§
source§impl Clone for NodeStatus
impl Clone for NodeStatus
source§fn clone(&self) -> NodeStatus
fn clone(&self) -> NodeStatus
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for NodeStatus
impl Debug for NodeStatus
source§impl<'de> Deserialize<'de> for NodeStatus
impl<'de> Deserialize<'de> for NodeStatus
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