pub struct RingMmap<T> {
pub mmap: OwnedMmap,
pub producer: *mut AtomicU32,
pub consumer: *mut AtomicU32,
pub desc: *mut T,
pub flags: *mut AtomicU32,
}Expand description
Holds the raw memory-mapped components of a ring buffer.
This struct contains raw pointers to the producer/consumer indices, the descriptor
array, and flags within the memory-mapped region. It is managed by the Ring struct.
Fields§
§mmap: OwnedMmapThe memory-mapped region owned by this struct.
producer: *mut AtomicU32A pointer to the atomic producer index of the ring.
consumer: *mut AtomicU32A pointer to the atomic consumer index of the ring.
desc: *mut TA pointer to the beginning of the descriptor array.
flags: *mut AtomicU32A pointer to the atomic flags field of the ring.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for RingMmap<T>
impl<T> RefUnwindSafe for RingMmap<T>where
T: RefUnwindSafe,
impl<T> !Send for RingMmap<T>
impl<T> !Sync for RingMmap<T>
impl<T> Unpin for RingMmap<T>
impl<T> UnwindSafe for RingMmap<T>where
T: RefUnwindSafe,
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more