Trait diesel::connection::ConnectionGatWorkaround
source · pub trait ConnectionGatWorkaround<'conn, 'query, DB: Backend, B = DefaultLoadingMode> {
type Cursor: Iterator<Item = QueryResult<Self::Row>>;
type Row: Row<'conn, DB>;
}
Expand description
This trait describes which cursor type is used by a given connection
implementation. This trait is only useful in combination with Connection
.
Implementation wise this is a workaround for GAT’s
Required Associated Types§
sourcetype Cursor: Iterator<Item = QueryResult<Self::Row>>
type Cursor: Iterator<Item = QueryResult<Self::Row>>
The cursor type returned by LoadConnection::load
Users should handle this as opaque type that implements Iterator
sourcetype Row: Row<'conn, DB>
type Row: Row<'conn, DB>
The row type used as Iterator::Item
for the iterator implementation
of ConnectionGatWorkaround::Cursor