Struct capsules_core::virtualizers::virtual_flash::FlashUser
source · pub struct FlashUser<'a, F: Flash + 'static> { /* private fields */ }
Expand description
Keep 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<'a, F: Flash> Client<F> for FlashUser<'a, F>
impl<'a, F: Flash> Client<F> for FlashUser<'a, 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