pub enum DriverEvent {
Submitted {
statement_handle: Option<String>,
running: bool,
},
Polled {
polls: u32,
},
PartitionFetched {
index: u32,
rows: u64,
bytes: u64,
},
Completed {
rows: i64,
partitions: u32,
},
RemoteCancel {
statement_handle: String,
acknowledged: bool,
detail: String,
},
}Expand description
What happened during a statement run, for progress reporting (reality-check bead E5). Carries no SQL text and no credential.
Variants§
Submitted
The submit was answered; running when the statement continues
asynchronously and will be polled.
Fields
Polled
A status poll was answered (polls issued so far).
PartitionFetched
A result partition was fetched and parsed.
Fields
Completed
The statement completed.
Fields
RemoteCancel
The driver sent the SQL API cancel for a statement it stopped following (a local cancel, or an error after the handle existed).
Trait Implementations§
Source§impl Clone for DriverEvent
impl Clone for DriverEvent
Source§impl Debug for DriverEvent
impl Debug for DriverEvent
impl Eq for DriverEvent
Source§impl PartialEq for DriverEvent
impl PartialEq for DriverEvent
impl StructuralPartialEq for DriverEvent
Auto Trait Implementations§
impl Freeze for DriverEvent
impl RefUnwindSafe for DriverEvent
impl Send for DriverEvent
impl Sync for DriverEvent
impl Unpin for DriverEvent
impl UnsafeUnpin for DriverEvent
impl UnwindSafe for DriverEvent
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).