Trait xitca_postgres::AsyncLendingIterator

source ·
pub trait AsyncLendingIterator {
    type Ok<'i>
       where Self: 'i;
    type Err;

    // Required method
    fn try_next(
        &mut self,
    ) -> impl Future<Output = Result<Option<Self::Ok<'_>>, Self::Err>> + Send;

    // Provided method
    fn size_hint(&self) -> (usize, Option<usize>) { ... }
}
Expand description

async streaming iterator with borrowed Item from Self.

Required Associated Types§

source

type Ok<'i> where Self: 'i

source

type Err

Required Methods§

source

fn try_next( &mut self, ) -> impl Future<Output = Result<Option<Self::Ok<'_>>, Self::Err>> + Send

Provided Methods§

Object Safety§

This trait is not object safe.

Implementors§

source§

impl AsyncLendingIterator for Driver

source§

type Ok<'i> = Message where Self: 'i

source§

type Err = Error

source§

impl AsyncLendingIterator for CopyOut

source§

type Ok<'i> = Bytes where Self: 'i

source§

type Err = Error

source§

impl AsyncLendingIterator for PipelineItem<'_>

source§

type Ok<'i> = GenericRow<&'i [Column], &'i mut Vec<Range<usize>>, Typed> where Self: 'i

source§

type Err = Error

source§

impl AsyncLendingIterator for RowSimpleStream

source§

type Ok<'i> = GenericRow<&'i [Column], &'i mut Vec<Range<usize>>, NoTyped> where Self: 'i

source§

type Err = Error

source§

impl<'a> AsyncLendingIterator for PipelineStream<'a>

source§

type Ok<'i> = PipelineItem<'i> where Self: 'i

source§

type Err = Error

source§

impl<'a> AsyncLendingIterator for RowStream<'a>

source§

type Ok<'i> = GenericRow<&'i [Column], &'i mut Vec<Range<usize>>, Typed> where Self: 'i

source§

type Err = Error