pub struct ScanOnceQueue { /* private fields */ }Expand description
The scanOnce facility: one bounded ring drained by one worker thread.
Dropping it stops and joins the worker.
Implementations§
Source§impl ScanOnceQueue
impl ScanOnceQueue
Sourcepub fn with_capacity(capacity: usize) -> Self
pub fn with_capacity(capacity: usize) -> Self
Build with an explicit ring capacity (clamped to at least 1).
Sourcepub fn handle(&self) -> ScanOnceHandle
pub fn handle(&self) -> ScanOnceHandle
A cheap, clonable submission handle (see ScanOnceHandle).
Sourcepub fn scan_once(&self, cb: OnceCallback) -> Result<(), ScanOnceOverflow>
pub fn scan_once(&self, cb: OnceCallback) -> Result<(), ScanOnceOverflow>
Enqueue cb for one-shot processing — convenience wrapper over
ScanOnceHandle::scan_once.
Sourcepub fn overflow_count(&self) -> u64
pub fn overflow_count(&self) -> u64
Lifetime overflow count — C onceQOverruns (dbScan.c:68).
Trait Implementations§
Source§impl Default for ScanOnceQueue
impl Default for ScanOnceQueue
Source§impl Drop for ScanOnceQueue
impl Drop for ScanOnceQueue
Auto Trait Implementations§
impl !RefUnwindSafe for ScanOnceQueue
impl !UnwindSafe for ScanOnceQueue
impl Freeze for ScanOnceQueue
impl Send for ScanOnceQueue
impl Sync for ScanOnceQueue
impl Unpin for ScanOnceQueue
impl UnsafeUnpin for ScanOnceQueue
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