pub struct QueryProgress {
pub percentage: f64,
pub rows_processed: u64,
pub total_rows_to_process: u64,
}Expand description
A thread-safe handle for interrupting or observing one running query. A snapshot of a running query’s progress.
Values mirror DuckDB’s duckdb_query_progress_type. percentage is -1.0
when DuckDB cannot estimate progress (e.g. progress reporting disabled, or no
query running).
Fields§
§percentage: f64Completion in 0.0..=100.0, or -1.0 when unknown.
rows_processed: u64Rows processed so far.
total_rows_to_process: u64Total rows the query expects to process.
Trait Implementations§
Source§impl Clone for QueryProgress
impl Clone for QueryProgress
Source§fn clone(&self) -> QueryProgress
fn clone(&self) -> QueryProgress
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 moreimpl Copy for QueryProgress
Source§impl Debug for QueryProgress
impl Debug for QueryProgress
Source§impl PartialEq for QueryProgress
impl PartialEq for QueryProgress
Source§fn eq(&self, other: &QueryProgress) -> bool
fn eq(&self, other: &QueryProgress) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for QueryProgress
Auto Trait Implementations§
impl Freeze for QueryProgress
impl RefUnwindSafe for QueryProgress
impl Send for QueryProgress
impl Sync for QueryProgress
impl Unpin for QueryProgress
impl UnsafeUnpin for QueryProgress
impl UnwindSafe for QueryProgress
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