pub struct RowIterator<'a, T>where
T: Reader,{ /* private fields */ }Implementations§
Source§impl<'a, T> RowIterator<'a, T>where
T: Reader,
impl<'a, T> RowIterator<'a, T>where
T: Reader,
pub fn set_call_options(&mut self, option: CallOptions)
Sourcepub fn columns_metadata(&self) -> &Arc<Vec<Field>> ⓘ
pub fn columns_metadata(&self) -> &Arc<Vec<Field>> ⓘ
Return metadata for all columns
pub fn column_metadata(&self, column_name: &str) -> Option<(usize, Field)>
Sourcepub fn read_timestamp(&self) -> Option<&Timestamp>
pub fn read_timestamp(&self) -> Option<&Timestamp>
Returns the snapshot read timestamp supplied by the server, if available.
The timestamp becomes available as response metadata is consumed by Self::next,
including when the result contains no rows. For a single-use read-only transaction,
this allows obtaining the read timestamp without a separate BeginTransaction RPC.
Returns None before metadata is consumed or when the server does not include a
read timestamp, such as for read-write transactions. For an explicitly begun
read-only transaction, use crate::transaction_ro::ReadOnlyTransaction::rts.
Sourcepub fn stats(&self) -> Option<&ResultSetStats>
pub fn stats(&self) -> Option<&ResultSetStats>
Returns query execution statistics if available. Stats are only available after all rows have been consumed and only when the query was executed with a QueryMode that includes stats (Profile, WithStats, or WithPlanAndStats).
Auto Trait Implementations§
impl<'a, T> !RefUnwindSafe for RowIterator<'a, T>
impl<'a, T> !UnwindSafe for RowIterator<'a, T>
impl<'a, T> Forget for RowIterator<'a, T>
impl<'a, T> Freeze for RowIterator<'a, T>where
T: Freeze,
impl<'a, T> Move for RowIterator<'a, T>
impl<'a, T> Send for RowIterator<'a, T>
impl<'a, T> Sync for RowIterator<'a, T>
impl<'a, T> Unpin for RowIterator<'a, T>where
T: Unpin,
impl<'a, T> UnsafeUnpin for RowIterator<'a, T>where
T: UnsafeUnpin,
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
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request