pub struct FlashUser<'a, F: Flash + 'static> { /* private fields */ }
Expand description
Keeps state for each flash user.
All uses of the virtualized flash interface need to create one of
these to be a user of the flash. The new()
function handles most
of the work, a user only has to pass in a reference to the
MuxFlash object.
Implementations§
Trait Implementations§
Source§impl<F: Flash> Client<F> for FlashUser<'_, F>
impl<F: Flash> Client<F> for FlashUser<'_, F>
Source§impl<F: Flash> Flash for FlashUser<'_, F>
impl<F: Flash> Flash for FlashUser<'_, F>
Source§fn read_page(
&self,
page_number: usize,
buf: &'static mut Self::Page,
) -> Result<(), (ErrorCode, &'static mut Self::Page)>
fn read_page( &self, page_number: usize, buf: &'static mut Self::Page, ) -> Result<(), (ErrorCode, &'static mut Self::Page)>
Read a page of flash into the buffer.
Auto Trait Implementations§
impl<'a, F> !Freeze for FlashUser<'a, F>
impl<'a, F> !RefUnwindSafe for FlashUser<'a, F>
impl<'a, F> !Send for FlashUser<'a, F>
impl<'a, F> !Sync for FlashUser<'a, F>
impl<'a, F> Unpin for FlashUser<'a, F>
impl<'a, F> !UnwindSafe for FlashUser<'a, F>
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