Skip to main content

new_mock_mmio

Function new_mock_mmio 

Source
pub fn new_mock_mmio<O: Deref<Target = MockMemoryOps> + Clone + Send + Sync>(
    ops: O,
    len: usize,
) -> impl MmioSplit + Send + Sync + use<O>
Expand description

Create a mock MMIO operation of the given len that uses the given mock ops.

The returned MMIO region is splittable and sendable.