trait RangedFetchable<Types>: Fetchable<Types, Request = Self::RangedRequest> + HeightIndexedwhere
Types: NodeType,
Header<Types>: QueryableHeader<Types>,
Payload<Types>: QueryablePayload<Types>,{
type RangedRequest: FetchRequest + From<usize> + Send;
// Required method
fn load_range<'life0, 'async_trait, S, R>(
storage: &'life0 mut S,
range: R,
) -> Pin<Box<dyn Future<Output = QueryResult<Vec<QueryResult<Self>>>> + Send + 'async_trait>>
where S: AvailabilityStorage<Types> + 'async_trait,
R: RangeBounds<usize> + Send + 'static + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait;
}
Required Associated Types§
type RangedRequest: FetchRequest + From<usize> + Send
Required Methods§
Sourcefn load_range<'life0, 'async_trait, S, R>(
storage: &'life0 mut S,
range: R,
) -> Pin<Box<dyn Future<Output = QueryResult<Vec<QueryResult<Self>>>> + Send + 'async_trait>>where
S: AvailabilityStorage<Types> + 'async_trait,
R: RangeBounds<usize> + Send + 'static + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
fn load_range<'life0, 'async_trait, S, R>(
storage: &'life0 mut S,
range: R,
) -> Pin<Box<dyn Future<Output = QueryResult<Vec<QueryResult<Self>>>> + Send + 'async_trait>>where
S: AvailabilityStorage<Types> + 'async_trait,
R: RangeBounds<usize> + Send + 'static + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
Load a range of these objects from local storage.
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.