struct LogTest<A: 'static + Alarm<'static>> {
log: &'static Log<'static, FLASHCALW>,
buffer: TakeCell<'static, [u8]>,
alarm: &'static A,
ops: &'static [TestOp],
op_index: Cell<usize>,
}
Fields§
§log: &'static Log<'static, FLASHCALW>
§buffer: TakeCell<'static, [u8]>
§alarm: &'static A
§ops: &'static [TestOp]
§op_index: Cell<usize>
Implementations§
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