pub struct StorageDisk {Show 30 fields
pub endpoint: String,
pub root_disk: bool,
pub drive_path: String,
pub healing: bool,
pub scanning: bool,
pub state: String,
pub uuid: String,
pub model: Option<String>,
pub total_space: u64,
pub used_space: u64,
pub available_space: u64,
pub read_throughput: Option<f64>,
pub write_throughput: Option<f64>,
pub read_latency: Option<f64>,
pub write_latency: Option<f64>,
pub utilization: Option<f64>,
pub metrics: Option<StorageDiskMetrics>,
pub heal_info: Option<Value>,
pub used_inodes: u64,
pub free_inodes: u64,
pub local: bool,
pub pool_index: i32,
pub set_index: i32,
pub disk_index: i32,
pub runtime_state: Option<String>,
pub offline_duration_seconds: Option<u64>,
pub capacity_observation_source: Option<String>,
pub capacity_observation_age_seconds: Option<u64>,
pub physical_device_ids: Option<Vec<String>>,
pub extra: BTreeMap<String, Value>,
}Expand description
One disk returned by RustFS storage information.
Fields§
§endpoint: String§root_disk: bool§drive_path: String§healing: bool§scanning: bool§state: String§uuid: String§model: Option<String>§total_space: u64§used_space: u64§available_space: u64§read_throughput: Option<f64>§write_throughput: Option<f64>§read_latency: Option<f64>§write_latency: Option<f64>§utilization: Option<f64>§metrics: Option<StorageDiskMetrics>§heal_info: Option<Value>§used_inodes: u64§free_inodes: u64§local: bool§pool_index: i32§set_index: i32§disk_index: i32§runtime_state: Option<String>§offline_duration_seconds: Option<u64>§capacity_observation_source: Option<String>§capacity_observation_age_seconds: Option<u64>§physical_device_ids: Option<Vec<String>>§extra: BTreeMap<String, Value>Trait Implementations§
Source§impl Clone for StorageDisk
impl Clone for StorageDisk
Source§fn clone(&self) -> StorageDisk
fn clone(&self) -> StorageDisk
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 StorageDisk
impl Debug for StorageDisk
Source§impl Default for StorageDisk
impl Default for StorageDisk
Source§fn default() -> StorageDisk
fn default() -> StorageDisk
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StorageDisk
impl<'de> Deserialize<'de> for StorageDisk
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
Source§impl PartialEq for StorageDisk
impl PartialEq for StorageDisk
Source§impl Serialize for StorageDisk
impl Serialize for StorageDisk
impl StructuralPartialEq for StorageDisk
Auto Trait Implementations§
impl Freeze for StorageDisk
impl RefUnwindSafe for StorageDisk
impl Send for StorageDisk
impl Sync for StorageDisk
impl Unpin for StorageDisk
impl UnsafeUnpin for StorageDisk
impl UnwindSafe for StorageDisk
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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