pub struct RmwMultiwriteNorFlashStorage<'a, S> { /* private fields */ }
Expand description

Implementations§

source§

impl<'a, S> RmwMultiwriteNorFlashStorage<'a, S>

source

pub fn new(nor_flash: S, merge_buffer: &'a mut [u8]) -> Self

Instantiate a new generic Storage from a NorFlash peripheral

NOTE This will panic if the provided merge buffer, is smaller than the erase size of the flash peripheral

Trait Implementations§

source§

impl<'a, S> ReadStorage for RmwMultiwriteNorFlashStorage<'a, S>
where S: ReadNorFlash,

§

type Error = <S as ErrorType>::Error

An enumeration of storage errors
source§

fn read(&mut self, offset: u32, bytes: &mut [u8]) -> Result<(), Self::Error>

Read a slice of data from the storage peripheral, starting the read operation at the given address offset, and reading bytes.len() bytes. Read more
source§

fn capacity(&self) -> usize

The capacity of the storage peripheral in bytes.
source§

impl<'a, S> Storage for RmwMultiwriteNorFlashStorage<'a, S>

source§

fn write(&mut self, offset: u32, bytes: &[u8]) -> Result<(), Self::Error>

Write a slice of data to the storage peripheral, starting the write operation at the given address offset (between 0 and self.capacity()). Read more

Auto Trait Implementations§

§

impl<'a, S> RefUnwindSafe for RmwMultiwriteNorFlashStorage<'a, S>
where S: RefUnwindSafe,

§

impl<'a, S> Send for RmwMultiwriteNorFlashStorage<'a, S>
where S: Send,

§

impl<'a, S> Sync for RmwMultiwriteNorFlashStorage<'a, S>
where S: Sync,

§

impl<'a, S> Unpin for RmwMultiwriteNorFlashStorage<'a, S>
where S: Unpin,

§

impl<'a, S> !UnwindSafe for RmwMultiwriteNorFlashStorage<'a, S>

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.