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
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.