Trait diesel_async::methods::LoadQuery
source · pub trait LoadQuery<'query, Conn: AsyncConnection, U> {
type LoadFuture<'conn>: Future<Output = QueryResult<Self::Stream<'conn>>> + Send
where Conn: 'conn;
type Stream<'conn>: Stream<Item = QueryResult<U>> + Send
where Conn: 'conn;
// Required method
fn internal_load(self, conn: &mut Conn) -> Self::LoadFuture<'_>;
}
Expand description
The load
method
This trait should not be relied on directly by most apps. Its behavior is
provided by RunQueryDsl
. However, you may need a where clause on this trait
to call load
from generic code.
Required Associated Types§
sourcetype LoadFuture<'conn>: Future<Output = QueryResult<Self::Stream<'conn>>> + Send
where
Conn: 'conn
type LoadFuture<'conn>: Future<Output = QueryResult<Self::Stream<'conn>>> + Send where Conn: 'conn
The future returned by LoadQuery::internal_load
sourcetype Stream<'conn>: Stream<Item = QueryResult<U>> + Send
where
Conn: 'conn
type Stream<'conn>: Stream<Item = QueryResult<U>> + Send where Conn: 'conn
The inner stream returned by LoadQuery::internal_load
Required Methods§
sourcefn internal_load(self, conn: &mut Conn) -> Self::LoadFuture<'_>
fn internal_load(self, conn: &mut Conn) -> Self::LoadFuture<'_>
Load this query
Object Safety§
This trait is not object safe.