pub enum StorageType {
Undefined,
FixedRom,
RemovableRom,
FixedRam,
RemovableRam,
Other,
}Expand description
Type of storage medium.
Variants§
Undefined
Undefined storage type.
FixedRom
Fixed read-only memory (e.g. internal flash exposed read-only).
RemovableRom
Removable read-only memory.
FixedRam
Fixed read-write memory (e.g. internal storage).
RemovableRam
Removable read-write memory (e.g. an SD card).
Other
A code this library doesn’t model.
Trait Implementations§
Source§impl Clone for StorageType
impl Clone for StorageType
Source§fn clone(&self) -> StorageType
fn clone(&self) -> StorageType
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 moreimpl Copy for StorageType
Source§impl Debug for StorageType
impl Debug for StorageType
Source§impl Default for StorageType
impl Default for StorageType
Source§fn default() -> StorageType
fn default() -> StorageType
Returns the “default value” for a type. Read more
impl Eq for StorageType
Source§impl From<StorageType> for StorageType
impl From<StorageType> for StorageType
Source§fn from(t: PtpStorageType) -> Self
fn from(t: PtpStorageType) -> Self
Converts to this type from the input type.
Source§impl PartialEq for StorageType
impl PartialEq for StorageType
Source§fn eq(&self, other: &StorageType) -> bool
fn eq(&self, other: &StorageType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for StorageType
Auto Trait Implementations§
impl Freeze for StorageType
impl RefUnwindSafe for StorageType
impl Send for StorageType
impl Sync for StorageType
impl Unpin for StorageType
impl UnsafeUnpin for StorageType
impl UnwindSafe for StorageType
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