Expand description
Dummy loader.
A dummy loader that does not load anything. Can be useful when you know that you will never need to load remote resource.
Raises an LoadingDocumentFailed
at every attempt to load a resource.
Implementations§
Trait Implementations§
source§impl<I, T, M> Loader<I, M> for NoLoader<I, M, T>where
I: Send,
impl<I, T, M> Loader<I, M> for NoLoader<I, M, T>where
I: Send,
§type Error = CannotLoad<I>
type Error = CannotLoad<I>
Error type.
source§fn load_with<'a>(
&'a mut self,
_namespace: &mut impl IriVocabulary<Iri = I>,
url: I
) -> Pin<Box<dyn Future<Output = Result<RemoteDocument<I, M, T>, <NoLoader<I, M, T> as Loader<I, M>>::Error>> + Send + 'a, Global>>where
I: 'a,
fn load_with<'a>(
&'a mut self,
_namespace: &mut impl IriVocabulary<Iri = I>,
url: I
) -> Pin<Box<dyn Future<Output = Result<RemoteDocument<I, M, T>, <NoLoader<I, M, T> as Loader<I, M>>::Error>> + Send + 'a, Global>>where
I: 'a,
Loads the document behind the given IRI, using the given vocabulary.