struct LogTest<A: 'static + Alarm<'static>> {
    log: &'static Log<'static, FLASHCALW>,
    buffer: TakeCell<'static, [u8]>,
    alarm: &'static A,
    state: Cell<TestState>,
    ops: &'static [TestOp],
    op_index: Cell<usize>,
    op_start: Cell<bool>,
    read_val: Cell<u64>,
    write_val: Cell<u64>,
}Fields§
§log: &'static Log<'static, FLASHCALW>§buffer: TakeCell<'static, [u8]>§alarm: &'static A§state: Cell<TestState>§ops: &'static [TestOp]§op_index: Cell<usize>§op_start: Cell<bool>§read_val: Cell<u64>§write_val: Cell<u64>Implementations§
Source§impl<A: 'static + Alarm<'static>> LogTest<A>
 
impl<A: 'static + Alarm<'static>> LogTest<A>
fn new( log: &'static Log<'static, FLASHCALW>, buffer: &'static mut [u8], alarm: &'static A, ops: &'static [TestOp], ) -> LogTest<A>
fn run(&self)
fn next_op(&self)
fn erase(&self)
fn read(&self)
fn bad_read(&self)
fn write(&self)
fn bad_write(&self)
fn sync(&self)
fn seek_beginning(&self)
fn bad_seek(&self, entry_id: usize)
fn wait(&self)
Trait Implementations§
Source§impl<A: Alarm<'static>> AlarmClient for LogTest<A>
 
impl<A: Alarm<'static>> AlarmClient for LogTest<A>
Source§impl<A: Alarm<'static>> LogReadClient for LogTest<A>
 
impl<A: Alarm<'static>> LogReadClient for LogTest<A>
Source§impl<A: Alarm<'static>> LogWriteClient for LogTest<A>
 
impl<A: Alarm<'static>> LogWriteClient for LogTest<A>
Source§fn append_done(
    &self,
    buffer: &'static mut [u8],
    length: usize,
    records_lost: bool,
    error: Result<(), ErrorCode>,
)
 
fn append_done( &self, buffer: &'static mut [u8], length: usize, records_lost: bool, error: Result<(), ErrorCode>, )
Returns the original buffer that contained the data to write, the number of bytes written,
and whether any old entries in the log were lost (due to a circular log being filled up).
Auto Trait Implementations§
impl<A> !Freeze for LogTest<A>
impl<A> !RefUnwindSafe for LogTest<A>
impl<A> !Send for LogTest<A>
impl<A> !Sync for LogTest<A>
impl<A> Unpin for LogTest<A>
impl<A> !UnwindSafe for LogTest<A>
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