pub trait EepromSpace<'e> {
type W: Write;
type R: Read;
const SIZE: usize;
// Required methods
fn read_at_into(&self, offset: usize, dest: &mut [u8]) -> usize;
fn write_at_from(&mut self, offset: usize, src: &[u8]) -> usize;
fn writer(&'e mut self) -> Self::W;
fn writer_at(&'e mut self, offset: usize) -> Self::W;
fn reader(&'e self) -> Self::R;
fn reader_at(&'e self, offset: usize) -> Self::R;
}
Required Associated Types§
Required Associated Constants§
Required Methods§
sourcefn read_at_into(&self, offset: usize, dest: &mut [u8]) -> usize
fn read_at_into(&self, offset: usize, dest: &mut [u8]) -> usize
Read from the EEPROM space, from the given offset, into the buffer provided. The entire buffer will be filled (up to a maximum of Self::SIZE bytes.)
§Returns
Number of bytes read
sourcefn write_at_from(&mut self, offset: usize, src: &[u8]) -> usize
fn write_at_from(&mut self, offset: usize, src: &[u8]) -> usize
Object Safety§
This trait is not object safe.