pub struct NoLoader;
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.
Trait Implementations§
source§impl<I> Loader<I> for NoLoader
impl<I> Loader<I> for NoLoader
§type Error = CannotLoad<I>
type Error = CannotLoad<I>
Error type.
source§async fn load_with<V>(
&mut self,
_vocabulary: &mut V,
url: I
) -> Result<RemoteDocument<I>, CannotLoad<I>>where
V: IriVocabulary<Iri = I>,
async fn load_with<V>(
&mut self,
_vocabulary: &mut V,
url: I
) -> Result<RemoteDocument<I>, CannotLoad<I>>where
V: IriVocabulary<Iri = I>,
Loads the document behind the given IRI, using the given vocabulary.
Auto Trait Implementations§
impl Freeze for NoLoader
impl RefUnwindSafe for NoLoader
impl Send for NoLoader
impl Sync for NoLoader
impl Unpin for NoLoader
impl UnwindSafe for NoLoader
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