pub struct MappedRingMem { /* private fields */ }
Expand description
Ring buffer memory backed by a memory mapped channel.
Trait Implementations§
Source§impl Debug for MappedRingMem
impl Debug for MappedRingMem
Source§impl RingMem for MappedRingMem
impl RingMem for MappedRingMem
Source§fn read_at(&self, addr: usize, data: &mut [u8])
fn read_at(&self, addr: usize, data: &mut [u8])
Reads from the data portion of the ring, wrapping (once) at the end of
the ring. Precondition:
addr + data.len() <= self.len() * 2
.Source§fn write_at(&self, addr: usize, data: &[u8])
fn write_at(&self, addr: usize, data: &[u8])
Writes to the data portion of the ring, wrapping (once) at the end of
the ring. Precondition:
addr + data.len() <= self.len() * 2
.§fn read_aligned(&self, addr: usize, data: &mut [u8])
fn read_aligned(&self, addr: usize, data: &mut [u8])
Reads from the data portion of the ring, as in [
RingMem::read_at
]. addr
and
data.len()
must be multiples of 8. Read more§fn write_aligned(&self, addr: usize, data: &[u8])
fn write_aligned(&self, addr: usize, data: &[u8])
Writes to the data portion of the ring, as in [
RingMem::write_at
]. addr
and
data.len()
must be multiples of 8. Read moreAuto Trait Implementations§
impl Freeze for MappedRingMem
impl RefUnwindSafe for MappedRingMem
impl Send for MappedRingMem
impl Sync for MappedRingMem
impl Unpin for MappedRingMem
impl UnwindSafe for MappedRingMem
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