pub trait LoadQuery<'query, Conn, U, B = DefaultLoadingMode>: RunQueryDsl<Conn> {
type RowIter<'conn>: Iterator<Item = QueryResult<U>>
where Conn: 'conn;
// Required method
fn internal_load(self, conn: &mut Conn) -> QueryResult<Self::RowIter<'_>>;
}
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 RowIter<'conn>: Iterator<Item = QueryResult<U>>
where
Conn: 'conn
type RowIter<'conn>: Iterator<Item = QueryResult<U>> where Conn: 'conn
Return type of LoadQuery::internal_load
Required Methods§
Sourcefn internal_load(self, conn: &mut Conn) -> QueryResult<Self::RowIter<'_>>
Available on crate feature i-implement-a-third-party-backend-and-opt-into-breaking-changes
only.
fn internal_load(self, conn: &mut Conn) -> QueryResult<Self::RowIter<'_>>
i-implement-a-third-party-backend-and-opt-into-breaking-changes
only.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.