pub struct StorageInfo<'a> {
pub storage_type: u16,
pub filesystem_type: u16,
pub access_capability: u16,
pub max_capacity: u64,
pub free_space_in_bytes: u64,
pub free_space_in_images: u32,
pub storage_description: &'a str,
pub volume_label: &'a str,
}Expand description
MTP StorageInfo dataset returned by op::GET_STORAGE_INFO.
Fields§
§storage_type: u16Storage media type (see storage_type).
filesystem_type: u16Filesystem type (see fs_type).
access_capability: u16Access capability (see access).
max_capacity: u64Maximum capacity in bytes.
free_space_in_bytes: u64Free space in bytes.
free_space_in_images: u32Approximate free space in images (0xFFFF_FFFF if unused).
storage_description: &'a strHuman-readable storage description.
volume_label: &'a strVolume label.
Implementations§
Source§impl<'a> StorageInfo<'a>
impl<'a> StorageInfo<'a>
Trait Implementations§
Source§impl<'a> Clone for StorageInfo<'a>
impl<'a> Clone for StorageInfo<'a>
impl<'a> Copy for StorageInfo<'a>
Source§impl<'a> Debug for StorageInfo<'a>
impl<'a> Debug for StorageInfo<'a>
Auto Trait Implementations§
impl<'a> Forget for StorageInfo<'a>
impl<'a> Freeze for StorageInfo<'a>
impl<'a> Move for StorageInfo<'a>
impl<'a> RefUnwindSafe for StorageInfo<'a>
impl<'a> Send for StorageInfo<'a>
impl<'a> Sync for StorageInfo<'a>
impl<'a> Unpin for StorageInfo<'a>
impl<'a> UnsafeUnpin for StorageInfo<'a>
impl<'a> UnwindSafe for StorageInfo<'a>
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