Struct crossbeam_epoch::sync::queue::Node
source · struct Node<T> {
data: MaybeUninit<T>,
next: Atomic<Node<T>>,
}
Fields§
§data: MaybeUninit<T>
The slot in which a value of type T
can be stored.
The type of data
is MaybeUninit<T>
because a Node<T>
doesn’t always contain a T
.
For example, the sentinel node in a queue never contains a value: its slot is always empty.
Other nodes start their life with a push operation and contain a value until it gets popped
out. After that such empty nodes get added to the collector for destruction.
next: Atomic<Node<T>>
Auto Trait Implementations§
impl<T> !Freeze for Node<T>
impl<T> RefUnwindSafe for Node<T>where
T: RefUnwindSafe,
impl<T> Send for Node<T>
impl<T> Sync for Node<T>
impl<T> Unpin for Node<T>where
T: Unpin,
impl<T> UnwindSafe for Node<T>where
T: UnwindSafe + 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