pub struct DiskInfo {Show 14 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 total_space: u64,
pub used_space: u64,
pub available_space: u64,
pub pool_index: i32,
pub set_index: i32,
pub disk_index: i32,
pub heal_info: Option<HealingDiskInfo>,
}Expand description
Disk information
Fields§
§endpoint: StringDisk endpoint
root_disk: boolWhether this is a root disk
drive_path: StringDrive path
healing: boolWhether healing is in progress
scanning: boolWhether scanning is in progress
state: StringDisk state (online, offline)
uuid: StringDisk UUID
total_space: u64Total space in bytes
used_space: u64Used space in bytes
available_space: u64Available space in bytes
pool_index: i32Pool index
set_index: i32Set index
disk_index: i32Disk index within set
heal_info: Option<HealingDiskInfo>Healing info if disk is being healed
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DiskInfo
impl<'de> Deserialize<'de> for DiskInfo
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 DiskInfo
impl RefUnwindSafe for DiskInfo
impl Send for DiskInfo
impl Sync for DiskInfo
impl Unpin for DiskInfo
impl UnsafeUnpin for DiskInfo
impl UnwindSafe for DiskInfo
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