pub struct StorageId(pub u64);Expand description
Opaque identifier for a storage on a device.
Like ObjectHandle, this is a backend-defined token. The USB/PTP backend uses the raw PTP
storage ID; the WPD backend derives a stable token from the WPD storage object-ID.
Tuple Fields§
§0: u64Implementations§
Trait Implementations§
impl Copy for StorageId
impl Eq for StorageId
Source§impl From<StorageId> for StorageId
impl From<StorageId> for StorageId
Source§fn from(s: PtpStorageId) -> Self
fn from(s: PtpStorageId) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for StorageId
Auto Trait Implementations§
impl Freeze for StorageId
impl RefUnwindSafe for StorageId
impl Send for StorageId
impl Sync for StorageId
impl Unpin for StorageId
impl UnsafeUnpin for StorageId
impl UnwindSafe for StorageId
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