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
sourceimpl<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 Output = T
type Output = T
The type of documents that can be loaded.
type Error = CannotLoad<I>
sourcefn load_with<'a>(
&'a mut self,
_namespace: &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: &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, inside 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more