pub struct Staged<'a, const N: usize>(/* private fields */);Expand description
The card as the planning closure sees it. Reads come from the writes
queued so far, then from the cached directory; writes are queued, not
sent. It is the Block under the Card that CardJob::plan passes.
It holds the directory only: a read of any other frame that no queued
write covers fails with Error::OutOfRange. format, write, delete,
list, free_blocks and is_formatted read nothing else. A write past
the queue’s capacity fails with Error::NoSpace.
Trait Implementations§
Source§impl<const N: usize> Block for Staged<'_, N>
impl<const N: usize> Block for Staged<'_, N>
Source§fn read_frame(&mut self, frame: u16, out: &mut [u8; 128]) -> Result<()>
fn read_frame(&mut self, frame: u16, out: &mut [u8; 128]) -> Result<()>
Source§fn write_frame(&mut self, frame: u16, data: &[u8; 128]) -> Result<()>
fn write_frame(&mut self, frame: u16, data: &[u8; 128]) -> Result<()>
Source§fn write_frame_unsettled(&mut self, frame: u16, data: &[u8; 128]) -> Result<()>
fn write_frame_unsettled(&mut self, frame: u16, data: &[u8; 128]) -> Result<()>
write_frame without waiting out the card’s
commit time afterwards. Read more