Struct json_ld_core::loader::none::NoLoader
source · pub struct NoLoader<I = Index, M = Location<I>, T = Value<M>>(_);
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.
Auto Trait Implementations§
impl<I, M, T> RefUnwindSafe for NoLoader<I, M, T>where I: RefUnwindSafe, M: RefUnwindSafe, T: RefUnwindSafe,
impl<I, M, T> Send for NoLoader<I, M, T>where I: Send, M: Send, T: Send,
impl<I, M, T> Sync for NoLoader<I, M, T>where I: Sync, M: Sync, T: Sync,
impl<I, M, T> Unpin for NoLoader<I, M, T>where I: Unpin, M: Unpin, T: Unpin,
impl<I, M, T> UnwindSafe for NoLoader<I, M, T>where I: UnwindSafe, M: UnwindSafe, T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more