pub struct Volume {
pub id: String,
pub name: String,
pub enabled: bool,
pub block_size: u64,
pub num_of_blocks: u64,
pub vpd83: String,
pub system_id: String,
pub pool_id: String,
/* private fields */
}
Expand description
Represent a storage volume. Also known as LUN(Logical Unit Number) or Storage Volume or Virtual Disk. The host OS treats it as block devices (one volume can be exposed as many disks when multipath I/O is enabled).
Fields§
§id: String
Identifier.
name: String
Human friendly name.
enabled: bool
Whether volume is online or offline(I/O access disabled by administrator.
block_size: u64
Block size.
num_of_blocks: u64
Number of blocks.
vpd83: String
SCSI VPD 0x83 NAA type identifier.
Udev treat it as ID_WWN_WITH_EXTENSION
system_id: String
Identifier of owner system.
pool_id: String
Identifier of owner pool.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Volume
impl<'de> Deserialize<'de> for Volume
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 Volume
impl RefUnwindSafe for Volume
impl Send for Volume
impl Sync for Volume
impl Unpin for Volume
impl UnwindSafe for Volume
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)