esp_idf_svc::nvs

Type Alias EspDefaultNvsPartition

Source
pub type EspDefaultNvsPartition = EspNvsPartition<NvsDefault>;

Aliased Type§

struct EspDefaultNvsPartition(/* private fields */);

Implementations

Source§

impl EspNvsPartition<NvsDefault>

Source

pub fn take() -> Result<Self, EspError>

Take the default NVS partition, initializing it if full or if a new version is detected

Source

pub fn take_with(reinit: bool) -> Result<Self, EspError>

Take the default NVS partition

§Arguments
  • reinit: Whether to reinitialize the partition if full or if a new version is detected

Trait Implementations

Source§

impl<T> Clone for EspNvsPartition<T>
where T: NvsPartitionId,

Source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<T: Debug + NvsPartitionId> Debug for EspNvsPartition<T>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more