pub struct StorageInfo {
pub storage_type: StorageType,
pub filesystem_type: FilesystemType,
pub access_capability: AccessCapability,
pub max_capacity: u64,
pub free_space_bytes: u64,
pub free_space_objects: u32,
pub description: String,
pub volume_identifier: String,
}Expand description
Storage information returned by GetStorageInfo.
Contains storage capacity, type, and access information.
Fields§
§storage_type: StorageTypeType of storage medium.
filesystem_type: FilesystemTypeType of filesystem.
access_capability: AccessCapabilityAccess capability.
max_capacity: u64Maximum storage capacity in bytes.
free_space_bytes: u64Free space in bytes.
free_space_objects: u32Free space in number of objects (0xFFFFFFFF if unknown).
description: StringStorage description string.
volume_identifier: StringVolume identifier/label.
Implementations§
Source§impl StorageInfo
impl StorageInfo
Sourcepub fn from_bytes(buf: &[u8]) -> Result<Self, Error>
pub fn from_bytes(buf: &[u8]) -> Result<Self, Error>
Parse StorageInfo from a byte buffer.
The buffer should contain the StorageInfo dataset as returned by GetStorageInfo.
Trait Implementations§
Source§impl Clone for StorageInfo
impl Clone for StorageInfo
Source§fn clone(&self) -> StorageInfo
fn clone(&self) -> StorageInfo
Returns a duplicate 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 StorageInfo
impl Debug for StorageInfo
Source§impl Default for StorageInfo
impl Default for StorageInfo
Source§fn default() -> StorageInfo
fn default() -> StorageInfo
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StorageInfo
impl RefUnwindSafe for StorageInfo
impl Send for StorageInfo
impl Sync for StorageInfo
impl Unpin for StorageInfo
impl UnsafeUnpin for StorageInfo
impl UnwindSafe for StorageInfo
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