pub struct NonvolatileToPages<'a, F: Flash + 'static> { /* private fields */ }Implementations§
Source§impl<'a, F: Flash> NonvolatileToPages<'a, F>
impl<'a, F: Flash> NonvolatileToPages<'a, F>
pub fn new( driver: &'a F, buffer: &'static mut F::Page, ) -> NonvolatileToPages<'a, F>
Trait Implementations§
Source§impl<F: Flash> Client<F> for NonvolatileToPages<'_, F>
impl<F: Flash> Client<F> for NonvolatileToPages<'_, F>
Source§impl<'a, F: Flash> NonvolatileStorage<'a> for NonvolatileToPages<'a, F>
impl<'a, F: Flash> NonvolatileStorage<'a> for NonvolatileToPages<'a, F>
fn set_client(&self, client: &'a dyn NonvolatileStorageClient)
Source§fn read(
&self,
buffer: &'static mut [u8],
address: usize,
length: usize,
) -> Result<(), (ErrorCode, &'static mut [u8])>
fn read( &self, buffer: &'static mut [u8], address: usize, length: usize, ) -> Result<(), (ErrorCode, &'static mut [u8])>
Read
length bytes starting at address address in to the provided
buffer. The buffer must be at least length bytes long. The address
must be in the address space of the physical storage. Read moreSource§fn write(
&self,
buffer: &'static mut [u8],
address: usize,
length: usize,
) -> Result<(), (ErrorCode, &'static mut [u8])>
fn write( &self, buffer: &'static mut [u8], address: usize, length: usize, ) -> Result<(), (ErrorCode, &'static mut [u8])>
Write
length bytes starting at address address from the provided
buffer. The buffer must be at least length bytes long. This address
must be in the address space of the physical storage. Read moreAuto Trait Implementations§
impl<'a, F> !Freeze for NonvolatileToPages<'a, F>
impl<'a, F> !RefUnwindSafe for NonvolatileToPages<'a, F>
impl<'a, F> !Send for NonvolatileToPages<'a, F>
impl<'a, F> !Sync for NonvolatileToPages<'a, F>
impl<'a, F> !UnwindSafe for NonvolatileToPages<'a, F>
impl<'a, F> Unpin for NonvolatileToPages<'a, F>
impl<'a, F> UnsafeUnpin for NonvolatileToPages<'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