pub struct StatementHooks<'a> {
pub sink: Option<&'a mut dyn RowSink>,
pub observer: Option<&'a mut dyn DriverObserver>,
}Expand description
Optional per-run hooks: a streaming row sink and a progress observer.
Fields§
§sink: Option<&'a mut dyn RowSink>Receives the rows instead of the completed statement (streaming).
observer: Option<&'a mut dyn DriverObserver>Receives progress events.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for StatementHooks<'a>
impl<'a> !Send for StatementHooks<'a>
impl<'a> !Sync for StatementHooks<'a>
impl<'a> !UnwindSafe for StatementHooks<'a>
impl<'a> Freeze for StatementHooks<'a>
impl<'a> Unpin for StatementHooks<'a>
impl<'a> UnsafeUnpin for StatementHooks<'a>
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> 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).