pub enum PipelineRequest {
#[non_exhaustive] Execute {
sql: String,
bind_rows: Vec<Vec<BindValue>>,
prefetch_rows: u32,
},
Commit,
}Expand description
One operation in a pipelined batch (Connection::run_pipeline).
Variants§
#[non_exhaustive]Execute
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
Commit
Implementations§
Source§impl PipelineRequest
impl PipelineRequest
pub fn execute( sql: impl Into<String>, bind_rows: Vec<Vec<BindValue>>, prefetch_rows: u32, ) -> Self
pub fn commit() -> Self
pub fn sql(&self) -> Option<&str>
pub fn bind_rows(&self) -> Option<&[Vec<BindValue>]>
pub fn prefetch_rows(&self) -> Option<u32>
pub fn is_commit(&self) -> bool
Trait Implementations§
Source§impl Clone for PipelineRequest
impl Clone for PipelineRequest
Source§fn clone(&self) -> PipelineRequest
fn clone(&self) -> PipelineRequest
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 PipelineRequest
impl RefUnwindSafe for PipelineRequest
impl Send for PipelineRequest
impl Sync for PipelineRequest
impl Unpin for PipelineRequest
impl UnsafeUnpin for PipelineRequest
impl UnwindSafe for PipelineRequest
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<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).