pub struct UnboundedEnqueueHandle<'a, T> { /* private fields */ }
Expand description
A enqueue handle to an UnboundedQueue, allowing for bulk enqueues efficiently. Internally, the unbounded queue manages the queue of bounded queues with hazard pointers to avoid the ABA problem, this allows minimizing the creation of these hazard pointers.
§Example
use lfqueue::UnboundedQueue;
let queue = UnboundedQueue::<usize>::new();
let mut handle = queue.enqueue_handle();
handle.enqueue(3);
Implementations§
Source§impl<'a, T> UnboundedEnqueueHandle<'a, T>
impl<'a, T> UnboundedEnqueueHandle<'a, T>
Auto Trait Implementations§
impl<'a, T> Freeze for UnboundedEnqueueHandle<'a, T>
impl<'a, T> !RefUnwindSafe for UnboundedEnqueueHandle<'a, T>
impl<'a, T> Send for UnboundedEnqueueHandle<'a, T>
impl<'a, T> Sync for UnboundedEnqueueHandle<'a, T>
impl<'a, T> Unpin for UnboundedEnqueueHandle<'a, T>
impl<'a, T> !UnwindSafe for UnboundedEnqueueHandle<'a, T>
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