Struct json_ld_core::loader::none::NoLoader
source · 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: Send, T, M> Loader<I, M> for NoLoader<I, M, T>
impl<I: Send, T, M> Loader<I, M> for NoLoader<I, M, T>
§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
) -> BoxFuture<'a, Result<RemoteDocument<I, M, T>, Self::Error>>where
I: 'a,
fn load_with<'a>(
&'a mut self,
_namespace: &mut impl IriVocabulary<Iri = I>,
url: I
) -> BoxFuture<'a, Result<RemoteDocument<I, M, T>, Self::Error>>where
I: 'a,
Loads the document behind the given IRI, using the given vocabulary.