Struct google_cloud_spanner::reader::RowIterator
source · pub struct RowIterator<'a> { /* private fields */ }Implementations§
source§impl<'a> RowIterator<'a>
impl<'a> RowIterator<'a>
sourcepub fn set_call_options(&mut self, option: CallOptions)
pub fn set_call_options(&mut self, option: CallOptions)
Examples found in repository?
src/transaction.rs (line 213)
202 203 204 205 206 207 208 209 210 211 212 213 214 215
pub async fn read_row_with_option(
&mut self,
table: &str,
columns: &[&str],
key: Key,
options: ReadOptions,
) -> Result<Option<Row>, Status> {
let call_options = options.call_options.clone();
let mut reader = self
.read_with_option(table, columns, KeySet::from(key), options)
.await?;
reader.set_call_options(call_options);
reader.next().await
}Trait Implementations§
source§impl<'a> AsyncIterator for RowIterator<'a>
impl<'a> AsyncIterator for RowIterator<'a>
source§fn next<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<Option<Row>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn next<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<Option<Row>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
next returns the next result. Its second return value is None if there are no more results.
fn column_metadata(&self, column_name: &str) -> Option<(usize, Field)>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for RowIterator<'a>
impl<'a> Send for RowIterator<'a>
impl<'a> !Sync for RowIterator<'a>
impl<'a> Unpin for RowIterator<'a>
impl<'a> !UnwindSafe for RowIterator<'a>
Blanket Implementations§
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>
Wrap the input message
T in a tonic::Request