pub struct FileBlockDevice { /* private fields */ }Expand description
File-backed block device for black-box tests and desktop experiments.
This backend performs direct local-file reads and writes. sync forwards to
the host file’s data-sync operation so file-handle flush/sync tests exercise
a real backend boundary. Like MemoryBlockDevice, prog preserves NOR
semantics by reading the current bytes, applying old & new, and writing
the result back to the file.
Implementations§
Trait Implementations§
Source§impl BlockDevice for FileBlockDevice
Available on crate feature std only.
impl BlockDevice for FileBlockDevice
Available on crate feature
std only.Auto Trait Implementations§
impl !Freeze for FileBlockDevice
impl RefUnwindSafe for FileBlockDevice
impl Send for FileBlockDevice
impl Sync for FileBlockDevice
impl Unpin for FileBlockDevice
impl UnsafeUnpin for FileBlockDevice
impl UnwindSafe for FileBlockDevice
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