Struct json_ld_core::loader::fs::FsLoader
source · pub struct FsLoader<I = IriIndex, M = Location<I>, T = Value<M>, E = MetaError<M>> { /* private fields */ }
Expand description
File-system loader.
This is a special JSON-LD document loader that can load document from the file system by attaching a directory to specific URLs.
Loaded documents are not cached: a new file system read is made each time an URL is loaded even if it has already been queried before.
Implementations§
Trait Implementations§
source§impl<I: Clone> Default for FsLoader<I, Location<I>, Value<Location<I>>, MetaError<Location<I>>>
impl<I: Clone> Default for FsLoader<I, Location<I>, Value<Location<I>>, MetaError<Location<I>>>
source§impl<I: Send, T: Send, M: Send, E> Loader<I, M> for FsLoader<I, M, T, E>
impl<I: Send, T: Send, M: Send, E> Loader<I, M> for FsLoader<I, M, T, E>
source§fn load_with<'a>(
&'a mut self,
vocabulary: &'a mut (impl Sync + Send + IriVocabulary<Iri = I>),
url: I
) -> BoxFuture<'a, Result<RemoteDocument<I, M, T>, Self::Error>>where
I: 'a,
fn load_with<'a>(
&'a mut self,
vocabulary: &'a mut (impl Sync + Send + 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 = IriIndex, M = Location<I>, T = Value<M>, E = Meta<Error<M>, M>> !RefUnwindSafe for FsLoader<I, M, T, E>
impl<I, M, T, E> Send for FsLoader<I, M, T, E>where
I: Send,
impl<I, M, T, E> Sync for FsLoader<I, M, T, E>where
I: Sync,
impl<I, M, T, E> Unpin for FsLoader<I, M, T, E>where
I: Unpin,
impl<I = IriIndex, M = Location<I>, T = Value<M>, E = Meta<Error<M>, M>> !UnwindSafe for FsLoader<I, M, T, E>
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