pub struct PreparedReadLease { /* private fields */ }Expand description
A prepared stream lease. Dropping a partially consumed HTTP response uses
the same registry cancellation path as POST .../cancel.
Implementations§
Source§impl PreparedReadLease
impl PreparedReadLease
pub fn columns(&self) -> Vec<ColumnInfo>
Sourcepub fn preview_stream(&self) -> Option<PreparedResultStream>
pub fn preview_stream(&self) -> Option<PreparedResultStream>
Open a second immutable cursor for response-size preflight. It never exposes rows to a caller and leaves the delivery cursor untouched.
Sourcepub fn next_row(&mut self) -> Option<Vec<SqlValue>>
pub fn next_row(&mut self) -> Option<Vec<SqlValue>>
Returns a row only while the registered execution remains successful. A cancellation that arrives between HTTP body polls is observed before the next row is made available to the response stream.
pub fn summary(&self) -> ReadExecutionSummary
Trait Implementations§
Source§impl Drop for PreparedReadLease
impl Drop for PreparedReadLease
Auto Trait Implementations§
impl !RefUnwindSafe for PreparedReadLease
impl !UnwindSafe for PreparedReadLease
impl Freeze for PreparedReadLease
impl Send for PreparedReadLease
impl Sync for PreparedReadLease
impl Unpin for PreparedReadLease
impl UnsafeUnpin for PreparedReadLease
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request