pub struct SpscRingHeader {
pub visible_head: AtomicU64,
pub tail: AtomicU64,
pub capacity: u32,
/* private fields */
}Expand description
SPSC ring header (192 bytes, cache-line aligned fields).
Fields§
§visible_head: AtomicU64Producer publication index (written by producer, read by consumer).
tail: AtomicU64Consumer index (written by consumer, read by producer).
capacity: u32Ring capacity (power of 2, immutable after init).
Implementations§
Auto Trait Implementations§
impl !Freeze for SpscRingHeader
impl RefUnwindSafe for SpscRingHeader
impl Send for SpscRingHeader
impl Sync for SpscRingHeader
impl Unpin for SpscRingHeader
impl UnwindSafe for SpscRingHeader
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