pub struct ManagedQueryBatches { /* private fields */ }Expand description
Buffered SQL output whose registry entry and session permit remain live until response serialization explicitly succeeds or fails.
Implementations§
Source§impl ManagedQueryBatches
impl ManagedQueryBatches
pub fn batches(&self) -> &[RecordBatch]
pub fn query(&self) -> &RegisteredSqlQuery
pub fn complete(self) -> Result<()>
pub fn try_complete(self) -> Result<()>
pub fn fail_result_limit(self)
pub fn fail_with_error( self, code: impl Into<String>, category: QueryTerminalErrorCategory, )
pub fn fail_serialization(self)
pub fn fail(self)
Trait Implementations§
Source§impl Drop for ManagedQueryBatches
impl Drop for ManagedQueryBatches
Auto Trait Implementations§
impl !RefUnwindSafe for ManagedQueryBatches
impl !UnwindSafe for ManagedQueryBatches
impl Freeze for ManagedQueryBatches
impl Send for ManagedQueryBatches
impl Sync for ManagedQueryBatches
impl Unpin for ManagedQueryBatches
impl UnsafeUnpin for ManagedQueryBatches
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more