pub struct GlobalBackend;Implementations§
Source§impl GlobalBackend
impl GlobalBackend
pub fn get(&self) -> &'static ArchiveManager
pub fn initialize<A: AsyncEngine>()
pub fn reset<A: AsyncEngine>(self)
Methods from Deref<Target = ArchiveManager>§
fn with_doc<R>( &self, uri: &DocumentUri, then: impl FnOnce(&DocumentFile) -> Result<R, BackendError>, other: impl FnOnce(&dyn ExternalArchive) -> Result<R, BackendError>, ) -> Result<R, BackendError>
fn with_doc_async<A: AsyncEngine, R: Send, T: Future<Output = Result<R, BackendError>> + Send, O: Future<Output = Result<R, BackendError>> + Send, Then: FnOnce(Arc<DocumentFile>) -> T + Send, Other: FnOnce(&dyn ExternalArchive) -> O>( &self, uri: &DocumentUri, then: Then, other: Other, ) -> impl Future<Output = Result<R, BackendError>> + Send + use<A, R, T, O, Then, Other>
fn do_notations<E: AsyncEngine>( &self, iri: NamedNode, ) -> impl Iterator<Item = (DocumentElementUri, Notation)>
Available on crate feature
rdf only.fn do_var_notations<E: AsyncEngine>( &self, iri: NamedNode, ) -> impl Iterator<Item = (DocumentElementUri, Notation)>
Available on crate feature
rdf only.pub fn memory(&self) -> ManagerCacheSize
Available on crate feature
deepsize only.pub fn all_archives(&self) -> impl Deref<Target = [Archive]> + '_
pub fn triple_store(&self) -> &RDFStore
Available on crate feature
rdf only.pub fn with_tree<R>(&self, f: impl FnOnce(&ArchiveTree) -> R) -> R
pub fn reinit<R>( &self, f: impl FnOnce(&mut ArchiveTree) -> R, paths: &[&Path], ) -> R
pub(crate) fn load_module( &self, archive: &ArchiveUri, path: Option<&UriPath>, name: &str, ) -> Result<Module, BackendError>
pub(crate) fn load_module_async<A: AsyncEngine>( &self, archive: &ArchiveUri, path: Option<&UriPath>, name: &str, ) -> impl Future<Output = Result<Module, BackendError>> + 'static + use<A>
Sourcepub fn load_one(
&self,
manifest: &Path,
rel_path: RelPath<'_>,
) -> Result<(), ManifestParseError>
pub fn load_one( &self, manifest: &Path, rel_path: RelPath<'_>, ) -> Result<(), ManifestParseError>
§Errors
pub fn load(&self, paths: &[&Path])
Sourcepub fn new_archive(
&self,
id: &ArchiveId,
base_uri: &BaseUri,
format: SourceFormatId,
default_file: &str,
content: &str,
) -> Result<PathBuf, NewArchiveError>
pub fn new_archive( &self, id: &ArchiveId, base_uri: &BaseUri, format: SourceFormatId, default_file: &str, content: &str, ) -> Result<PathBuf, NewArchiveError>
pub fn index(&self, external_url: &str) -> (Vec<Institution>, Vec<ArchiveIndex>)
Trait Implementations§
Source§impl Clone for GlobalBackend
impl Clone for GlobalBackend
Source§fn clone(&self) -> GlobalBackend
fn clone(&self) -> GlobalBackend
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GlobalBackend
impl Debug for GlobalBackend
Source§impl Deref for GlobalBackend
impl Deref for GlobalBackend
impl Copy for GlobalBackend
Auto Trait Implementations§
impl Freeze for GlobalBackend
impl RefUnwindSafe for GlobalBackend
impl Send for GlobalBackend
impl Sync for GlobalBackend
impl Unpin for GlobalBackend
impl UnwindSafe for GlobalBackend
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSend for T
impl<T> DowncastSend for T
§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<E, T, Request, Encoding> FromReq<Patch<Encoding>, Request, E> for Twhere
Request: Req<E> + Send + 'static,
Encoding: Decodes<T>,
E: FromServerFnError,
impl<E, T, Request, Encoding> FromReq<Patch<Encoding>, Request, E> for Twhere
Request: Req<E> + Send + 'static,
Encoding: Decodes<T>,
E: FromServerFnError,
§impl<E, T, Request, Encoding> FromReq<Post<Encoding>, Request, E> for Twhere
Request: Req<E> + Send + 'static,
Encoding: Decodes<T>,
E: FromServerFnError,
impl<E, T, Request, Encoding> FromReq<Post<Encoding>, Request, E> for Twhere
Request: Req<E> + Send + 'static,
Encoding: Decodes<T>,
E: FromServerFnError,
§impl<E, T, Request, Encoding> FromReq<Put<Encoding>, Request, E> for Twhere
Request: Req<E> + Send + 'static,
Encoding: Decodes<T>,
E: FromServerFnError,
impl<E, T, Request, Encoding> FromReq<Put<Encoding>, Request, E> for Twhere
Request: Req<E> + Send + 'static,
Encoding: Decodes<T>,
E: FromServerFnError,
§impl<E, Encoding, Response, T> FromRes<Patch<Encoding>, Response, E> for Twhere
Response: ClientRes<E> + Send,
Encoding: Decodes<T>,
E: FromServerFnError,
impl<E, Encoding, Response, T> FromRes<Patch<Encoding>, Response, E> for Twhere
Response: ClientRes<E> + Send,
Encoding: Decodes<T>,
E: FromServerFnError,
§impl<E, Encoding, Response, T> FromRes<Post<Encoding>, Response, E> for Twhere
Response: ClientRes<E> + Send,
Encoding: Decodes<T>,
E: FromServerFnError,
impl<E, Encoding, Response, T> FromRes<Post<Encoding>, Response, E> for Twhere
Response: ClientRes<E> + Send,
Encoding: Decodes<T>,
E: FromServerFnError,
§impl<E, Encoding, Response, T> FromRes<Put<Encoding>, Response, E> for Twhere
Response: ClientRes<E> + Send,
Encoding: Decodes<T>,
E: FromServerFnError,
impl<E, Encoding, Response, T> FromRes<Put<Encoding>, Response, E> for Twhere
Response: ClientRes<E> + Send,
Encoding: Decodes<T>,
E: FromServerFnError,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<E, T, Encoding, Request> IntoReq<Patch<Encoding>, Request, E> for Twhere
Request: ClientReq<E>,
Encoding: Encodes<T>,
E: FromServerFnError,
impl<E, T, Encoding, Request> IntoReq<Patch<Encoding>, Request, E> for Twhere
Request: ClientReq<E>,
Encoding: Encodes<T>,
E: FromServerFnError,
§impl<E, T, Encoding, Request> IntoReq<Post<Encoding>, Request, E> for Twhere
Request: ClientReq<E>,
Encoding: Encodes<T>,
E: FromServerFnError,
impl<E, T, Encoding, Request> IntoReq<Post<Encoding>, Request, E> for Twhere
Request: ClientReq<E>,
Encoding: Encodes<T>,
E: FromServerFnError,
§impl<E, T, Encoding, Request> IntoReq<Put<Encoding>, Request, E> for Twhere
Request: ClientReq<E>,
Encoding: Encodes<T>,
E: FromServerFnError,
impl<E, T, Encoding, Request> IntoReq<Put<Encoding>, Request, E> for Twhere
Request: ClientReq<E>,
Encoding: Encodes<T>,
E: FromServerFnError,
§impl<E, Response, Encoding, T> IntoRes<Patch<Encoding>, Response, E> for T
impl<E, Response, Encoding, T> IntoRes<Patch<Encoding>, Response, E> for T
§impl<E, Response, Encoding, T> IntoRes<Post<Encoding>, Response, E> for T
impl<E, Response, Encoding, T> IntoRes<Post<Encoding>, Response, E> for T
§impl<E, Response, Encoding, T> IntoRes<Put<Encoding>, Response, E> for T
impl<E, Response, Encoding, T> IntoRes<Put<Encoding>, Response, E> for T
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> SerializableKey for T
impl<T> SerializableKey for T
§impl<T> StorageAccess<T> for T
impl<T> StorageAccess<T> for T
§fn as_borrowed(&self) -> &T
fn as_borrowed(&self) -> &T
Borrows the value.
§fn into_taken(self) -> T
fn into_taken(self) -> T
Takes the value.