pub struct MemoryBlockRingBuffer(/* private fields */);
Implementations§
Trait Implementations§
Source§impl From<MemoryBlock> for MemoryBlockRingBuffer
impl From<MemoryBlock> for MemoryBlockRingBuffer
Source§impl RingMem for MemoryBlockRingBuffer
impl RingMem for MemoryBlockRingBuffer
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 MemoryBlockRingBuffer
impl !RefUnwindSafe for MemoryBlockRingBuffer
impl Send for MemoryBlockRingBuffer
impl Sync for MemoryBlockRingBuffer
impl Unpin for MemoryBlockRingBuffer
impl !UnwindSafe for MemoryBlockRingBuffer
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