#[repr(u16)]pub enum StorageType {
Undefined = 0,
FixedRom = 1,
RemovableRom = 2,
FixedRam = 3,
RemovableRam = 4,
Unknown(u16),
}Expand description
Type of storage medium.
Variants§
Undefined = 0
Undefined storage type.
FixedRom = 1
Fixed ROM (e.g., internal flash).
RemovableRom = 2
Removable ROM.
FixedRam = 3
Fixed RAM.
RemovableRam = 4
Removable RAM (e.g., SD card).
Unknown(u16)
Unknown storage type code.
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 · 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 StorageType
impl Debug for StorageType
Source§impl Default for StorageType
impl Default for StorageType
Source§impl From<StorageType> for u16
impl From<StorageType> for u16
Source§fn from(enum_value: StorageType) -> Self
fn from(enum_value: StorageType) -> Self
Converts to this type from the input type.
Source§impl From<u16> for StorageType
impl From<u16> for StorageType
Source§impl FromPrimitive for StorageType
impl FromPrimitive for StorageType
Source§impl PartialEq for StorageType
impl PartialEq for StorageType
impl Copy for StorageType
impl Eq for StorageType
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