pub struct VecHeader {
pub magic: u32,
pub slot_payload_size: u32,
pub capacity: u64,
pub len: AtomicU64,
pub reserved: AtomicU64,
/* private fields */
}Fields§
§magic: u32§slot_payload_size: u32§capacity: u64§len: AtomicU64Slots a reader may read: every index below this holds a fully written payload. A pusher advances it only after its own slot is written and every earlier reservation has committed.
reserved: AtomicU64Slots handed out to pushers, committed or still being written.
Ahead of len exactly while a push is in flight.
Auto Trait Implementations§
impl !Freeze for VecHeader
impl RefUnwindSafe for VecHeader
impl Send for VecHeader
impl Sync for VecHeader
impl Unpin for VecHeader
impl UnsafeUnpin for VecHeader
impl UnwindSafe for VecHeader
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