pub struct StorageInfo {
pub id: StorageId,
pub description: String,
pub volume_identifier: String,
pub total_capacity: u64,
pub free_space: u64,
pub is_writable: bool,
pub storage_type: StorageType,
pub filesystem_type: FilesystemType,
}Expand description
Description of a single storage on a device, backend-neutral.
Fields§
§id: StorageIdOpaque identifier for this storage (see StorageId).
description: StringHuman-readable description (e.g. “Internal shared storage”).
volume_identifier: StringVolume identifier, if any.
total_capacity: u64Total capacity in bytes.
free_space: u64Free space in bytes.
is_writable: boolWhether the storage accepts writes (uploads, deletes, renames).
storage_type: StorageTypeStorage medium type.
filesystem_type: FilesystemTypeFilesystem type.
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 (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 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