pub struct MemoryBlockDevice { /* private fields */ }Expand description
In-memory NOR-flash block device used by tests and early integrations.
Blocks start erased to 0xff. Programming uses old & new, so accidental
attempts to turn a programmed zero bit back into one are visible in the
stored bytes just as they would be on NOR flash. This is intentionally a
real block device implementation for tests, not a mock of filesystem
behavior.
Implementations§
Trait Implementations§
Source§impl BlockDevice for MemoryBlockDevice
impl BlockDevice for MemoryBlockDevice
Source§impl Clone for MemoryBlockDevice
impl Clone for MemoryBlockDevice
Source§fn clone(&self) -> MemoryBlockDevice
fn clone(&self) -> MemoryBlockDevice
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MemoryBlockDevice
impl RefUnwindSafe for MemoryBlockDevice
impl Send for MemoryBlockDevice
impl Sync for MemoryBlockDevice
impl Unpin for MemoryBlockDevice
impl UnsafeUnpin for MemoryBlockDevice
impl UnwindSafe for MemoryBlockDevice
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