Trait diesel_async::methods::LoadQueryGatWorkaround
source · [−]pub trait LoadQueryGatWorkaround<'conn, 'query, Conn, U> {
type LoadFuture: Future<Output = QueryResult<Self::Stream>> + Send;
type Stream: Stream<Item = QueryResult<U>> + Send;
}
Expand description
This trait is a workaround to emulate GAT on stable rust
It is used to specify the return type of LoadQuery::internal_load
which may contain lifetimes
Required Associated Types
sourcetype LoadFuture: Future<Output = QueryResult<Self::Stream>> + Send
type LoadFuture: Future<Output = QueryResult<Self::Stream>> + Send
The future returned by LoadQuery::internal_load
sourcetype Stream: Stream<Item = QueryResult<U>> + Send
type Stream: Stream<Item = QueryResult<U>> + Send
The inner stream returned by LoadQuery::internal_load