#[repr(u32)]pub enum NvsDataType {
U8 = 1,
I8 = 17,
U16 = 2,
I16 = 18,
U32 = 4,
I32 = 20,
U64 = 8,
I64 = 24,
Str = 33,
Blob = 66,
}Variants§
Implementations§
Source§impl NvsDataType
impl NvsDataType
Sourcepub fn from_nvs_type(nvs_type: nvs_type_t) -> Option<Self>
pub fn from_nvs_type(nvs_type: nvs_type_t) -> Option<Self>
Converts a nvs_type_t to an NvsDataType, returning None if the type is not recognized.
Trait Implementations§
Source§impl Clone for NvsDataType
impl Clone for NvsDataType
Source§fn clone(&self) -> NvsDataType
fn clone(&self) -> NvsDataType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable)§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for NvsDataType
Source§impl Debug for NvsDataType
impl Debug for NvsDataType
impl Eq for NvsDataType
Source§impl PartialEq for NvsDataType
impl PartialEq for NvsDataType
impl StructuralPartialEq for NvsDataType
Auto Trait Implementations§
impl Freeze for NvsDataType
impl RefUnwindSafe for NvsDataType
impl Send for NvsDataType
impl Sync for NvsDataType
impl Unpin for NvsDataType
impl UnsafeUnpin for NvsDataType
impl UnwindSafe for NvsDataType
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)