pub struct ScanOnceHandle { /* private fields */ }Expand description
Cheap, clonable submission side of a ScanOnceQueue — the seam route the
FLNK/scanOnce chain hands records into.
Implementations§
Source§impl ScanOnceHandle
impl 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 and return immediately. Err on a
full ring (the request is dropped, as in C). Port of scanOnce
(dbScan.c:664).
Sourcepub fn overflow_count(&self) -> u64
pub fn overflow_count(&self) -> u64
Lifetime overflow count — C onceQOverruns (dbScan.c:68).
Trait Implementations§
Source§impl Clone for ScanOnceHandle
impl Clone for ScanOnceHandle
Source§fn clone(&self) -> ScanOnceHandle
fn clone(&self) -> ScanOnceHandle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ScanOnceHandle
impl RefUnwindSafe for ScanOnceHandle
impl Send for ScanOnceHandle
impl Sync for ScanOnceHandle
impl Unpin for ScanOnceHandle
impl UnsafeUnpin for ScanOnceHandle
impl UnwindSafe for ScanOnceHandle
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