Function fetch_leaf_with_callbacks
Source pub(super) async fn fetch_leaf_with_callbacks<Types, S, P, I>(
tx: &mut impl AvailabilityStorage<Types>,
fetcher: Arc<Fetcher<Types, S, P>>,
req: LeafId<Types>,
callbacks: I,
) -> Result<()>where
Types:
NodeType,
Header<Types>:
QueryableHeader<Types>,
Payload<Types>:
QueryablePayload<Types>,
S:
VersionedDataSource + 'static,
for<'a> S::
Transaction<'a>:
UpdateAvailabilityStorage<Types>,
for<'a> S::
ReadOnly<'a>:
AvailabilityStorage<Types> +
NodeStorage<Types> +
PrunedHeightStorage,
P:
AvailabilityProvider<Types>,
I:
IntoIterator<Item =
LeafCallback<Types, S, P>> +
Send + 'static,
I::
IntoIter:
Send,