pub struct Partition<'a, M: RawMutex, T: NorFlash> { /* private fields */ }
Expand description
A logical partition of an underlying shared flash
A partition holds an offset and a size of the flash, and is restricted to operate with that range. There is no guarantee that muliple partitions on the same flash operate on mutually exclusive ranges - such a separation is up to the user to guarantee.
Implementations§
Trait Implementations§
Source§impl<M: RawMutex, T: NorFlash> NorFlash for Partition<'_, M, T>
impl<M: RawMutex, T: NorFlash> NorFlash for Partition<'_, M, T>
Source§const WRITE_SIZE: usize = T::WRITE_SIZE
const WRITE_SIZE: usize = T::WRITE_SIZE
The minumum number of bytes the storage peripheral can write
Source§const ERASE_SIZE: usize = T::ERASE_SIZE
const ERASE_SIZE: usize = T::ERASE_SIZE
The minumum number of bytes the storage peripheral can erase
Source§impl<M: RawMutex, T: NorFlash> ReadNorFlash for Partition<'_, M, T>
impl<M: RawMutex, T: NorFlash> ReadNorFlash for Partition<'_, M, T>
Source§const READ_SIZE: usize = T::READ_SIZE
const READ_SIZE: usize = T::READ_SIZE
The minumum number of bytes the storage peripheral can read
Auto Trait Implementations§
impl<'a, M, T> Freeze for Partition<'a, M, T>
impl<'a, M, T> !RefUnwindSafe for Partition<'a, M, T>
impl<'a, M, T> Send for Partition<'a, M, T>
impl<'a, M, T> Sync for Partition<'a, M, T>
impl<'a, M, T> Unpin for Partition<'a, M, T>
impl<'a, M, T> !UnwindSafe for Partition<'a, M, T>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)