pub trait Loader<I, M> {
type Output;
type Error;
fn load_with<'a>(
&'a mut self,
vocabulary: &'a impl Sync + IriVocabulary<Iri = I>,
url: I
) -> Pin<Box<dyn Future<Output = Result<RemoteDocument<I, M, Self::Output>, Self::Error>> + Send + 'a, Global>>
where
I: 'a;
fn load<'a>(
&'a mut self,
url: I
) -> Pin<Box<dyn Future<Output = Result<RemoteDocument<I, M, Self::Output>, Self::Error>> + Send + 'a, Global>>
where
I: 'a,
(): IriVocabulary<Iri = I>,
{ ... }
}
Expand description
JSON document loader.