pub struct SingleMappedRingMem<T>(pub T);
Tuple Fields§
§0: T
Trait Implementations§
Source§impl<T: Debug> Debug for SingleMappedRingMem<T>
impl<T: Debug> Debug for SingleMappedRingMem<T>
Source§impl<T: AsRef<[AtomicU8]> + Send> RingMem for SingleMappedRingMem<T>
impl<T: AsRef<[AtomicU8]> + Send> RingMem for SingleMappedRingMem<T>
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
.Source§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 moreSource§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<T> Freeze for SingleMappedRingMem<T>where
T: Freeze,
impl<T> RefUnwindSafe for SingleMappedRingMem<T>where
T: RefUnwindSafe,
impl<T> Send for SingleMappedRingMem<T>where
T: Send,
impl<T> Sync for SingleMappedRingMem<T>where
T: Sync,
impl<T> Unpin for SingleMappedRingMem<T>where
T: Unpin,
impl<T> UnwindSafe for SingleMappedRingMem<T>where
T: UnwindSafe,
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