pub struct NullCache {
pub last: Option<NullCacheOp>,
}Expand description
No-op DcaCache for host tests.
Tracks last-call metadata so tests can assert the right op was emitted at the right transition without a real cache.
Fields§
§last: Option<NullCacheOp>Sequence-numbered last operation, useful in unit tests.
Trait Implementations§
impl Copy for NullCache
Source§impl DcaCache for NullCache
impl DcaCache for NullCache
Source§fn clean(&mut self, addr: usize, len: usize)
fn clean(&mut self, addr: usize, len: usize)
Clean (write-back) cache lines covering
[addr, addr + len).Source§fn invalidate(&mut self, addr: usize, len: usize)
fn invalidate(&mut self, addr: usize, len: usize)
Invalidate cache lines covering
[addr, addr + len).impl Eq for NullCache
impl StructuralPartialEq for NullCache
Auto Trait Implementations§
impl Freeze for NullCache
impl RefUnwindSafe for NullCache
impl Send for NullCache
impl Sync for NullCache
impl Unpin for NullCache
impl UnsafeUnpin for NullCache
impl UnwindSafe for NullCache
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