#[non_exhaustive]pub struct ParallelScanInit { /* private fields */ }Expand description
The two outputs of StorageEngine::parallel_scan_init: the engine-owned
scan context that every later parallel_scan* call receives back, and the
number of worker threads the engine will drive.
The context pointer is round-tripped through MySQL verbatim; the binding
never dereferences it and the engine owns its lifetime (freed in
StorageEngine::parallel_scan_end).
Implementations§
Source§impl ParallelScanInit
impl ParallelScanInit
Sourcepub fn new(scan_ctx: *mut c_void, num_threads: usize) -> Self
pub fn new(scan_ctx: *mut c_void, num_threads: usize) -> Self
Build the outcome from the engine’s scan context and worker-thread count.
A null scan_ctx with num_threads == 0 signals “no parallel scan”.
Sourcepub fn num_threads(&self) -> usize
pub fn num_threads(&self) -> usize
Number of worker threads the engine will drive for the scan
Trait Implementations§
Auto Trait Implementations§
impl !Send for ParallelScanInit
impl !Sync for ParallelScanInit
impl Freeze for ParallelScanInit
impl RefUnwindSafe for ParallelScanInit
impl Unpin for ParallelScanInit
impl UnsafeUnpin for ParallelScanInit
impl UnwindSafe for ParallelScanInit
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