pub struct SandboxedBackend(pub(super) Arc<SandboxedBackendI>);Tuple Fields§
§0: Arc<SandboxedBackendI>Implementations§
Source§impl SandboxedBackend
impl SandboxedBackend
pub fn load_all(&self)
pub fn root(&self) -> &Path
pub fn get_repos(&self) -> Vec<SandboxedRepository>
pub fn with_repos<R>(&self, f: impl FnOnce(&[SandboxedRepository]) -> R) -> R
pub fn path_for(&self, id: &ArchiveId) -> PathBuf
pub fn new(name: &str, temp_dir: &Path) -> Self
pub fn clear(&self)
Sourcepub fn add(&self, sb: SandboxedRepository, then: impl FnOnce())
pub fn add(&self, sb: SandboxedRepository, then: impl FnOnce())
§Panics
fn require_meta_infs( &self, id: &ArchiveId, repos: &mut Vec<SandboxedRepository>, then: impl FnOnce(&LocalArchive, &mut Vec<SandboxedRepository>), group: impl FnOnce(&ArchiveGroup, &ArchiveTree, &mut Vec<SandboxedRepository>), else_: impl FnOnce(), )
pub fn maybe_copy(&self, archive: &LocalArchive)
fn copy_archive(&self, a: &LocalArchive) -> Result<(), FileError>
Trait Implementations§
Source§impl Clone for SandboxedBackend
impl Clone for SandboxedBackend
Source§impl Debug for SandboxedBackend
impl Debug for SandboxedBackend
Source§impl LocalBackend for SandboxedBackend
impl LocalBackend for SandboxedBackend
type ArchiveIter<'a> = Chain<Iter<'a, Archive>, Iter<'a, Archive>>
Source§fn save(
&self,
in_doc: &DocumentUri,
rel_path: Option<&UriPath>,
log: FileOrString,
from: BuildTargetId,
result: Option<Box<dyn Artifact>>,
) -> Result<(), ArtifactSaveError>
fn save( &self, in_doc: &DocumentUri, rel_path: Option<&UriPath>, log: FileOrString, from: BuildTargetId, result: Option<Box<dyn Artifact>>, ) -> Result<(), ArtifactSaveError>
Errors Read more
Source§fn get_document(&self, uri: &DocumentUri) -> Result<Document, BackendError>
fn get_document(&self, uri: &DocumentUri) -> Result<Document, BackendError>
Errors Read more
Source§fn get_document_async<A: AsyncEngine>(
&self,
uri: &DocumentUri,
) -> impl Future<Output = Result<Document, BackendError>> + Send + use<A>where
Self: Sized,
fn get_document_async<A: AsyncEngine>(
&self,
uri: &DocumentUri,
) -> impl Future<Output = Result<Document, BackendError>> + Send + use<A>where
Self: Sized,
Errors Read more
Source§fn get_module(&self, uri: &ModuleUri) -> Result<ModuleLike, BackendError>
fn get_module(&self, uri: &ModuleUri) -> Result<ModuleLike, BackendError>
Errors Read more
Source§fn get_module_async<A: AsyncEngine>(
&self,
uri: &ModuleUri,
) -> impl Future<Output = Result<ModuleLike, BackendError>> + Send + use<A>where
Self: Sized,
fn get_module_async<A: AsyncEngine>(
&self,
uri: &ModuleUri,
) -> impl Future<Output = Result<ModuleLike, BackendError>> + Send + use<A>where
Self: Sized,
Errors Read more
fn with_archive_or_group<R>(
&self,
id: &ArchiveId,
f: impl FnOnce(Option<&ArchiveOrGroup>) -> R,
) -> Rwhere
Self: Sized,
fn with_archive<R>(
&self,
id: &ArchiveId,
f: impl FnOnce(Option<&Archive>) -> R,
) -> Rwhere
Self: Sized,
fn with_archives<R>(&self, f: impl FnOnce(Self::ArchiveIter<'_>) -> R) -> Rwhere
Self: Sized,
Source§fn get_html_full(&self, uri: &DocumentUri) -> Result<Box<str>, BackendError>
fn get_html_full(&self, uri: &DocumentUri) -> Result<Box<str>, BackendError>
Errors Read more
Source§fn get_html_body(
&self,
uri: &DocumentUri,
) -> Result<(Box<[Css]>, Box<str>), BackendError>
fn get_html_body( &self, uri: &DocumentUri, ) -> Result<(Box<[Css]>, Box<str>), BackendError>
Errors Read more
Source§fn get_html_body_async<A: AsyncEngine>(
&self,
uri: &DocumentUri,
) -> impl Future<Output = Result<(Box<[Css]>, Box<str>), BackendError>> + Send + use<A>where
Self: Sized,
fn get_html_body_async<A: AsyncEngine>(
&self,
uri: &DocumentUri,
) -> impl Future<Output = Result<(Box<[Css]>, Box<str>), BackendError>> + Send + use<A>where
Self: Sized,
Errors Read more
Source§fn get_html_body_inner(
&self,
uri: &DocumentUri,
) -> Result<(Box<[Css]>, Box<str>), BackendError>
fn get_html_body_inner( &self, uri: &DocumentUri, ) -> Result<(Box<[Css]>, Box<str>), BackendError>
Errors Read more
Source§fn get_html_body_inner_async<A: AsyncEngine>(
&self,
uri: &DocumentUri,
) -> impl Future<Output = Result<(Box<[Css]>, Box<str>), BackendError>> + Send + use<A>where
Self: Sized,
fn get_html_body_inner_async<A: AsyncEngine>(
&self,
uri: &DocumentUri,
) -> impl Future<Output = Result<(Box<[Css]>, Box<str>), BackendError>> + Send + use<A>where
Self: Sized,
Errors Read more
Source§fn get_html_fragment(
&self,
uri: &DocumentUri,
range: DocumentRange,
) -> Result<(Box<[Css]>, Box<str>), BackendError>
fn get_html_fragment( &self, uri: &DocumentUri, range: DocumentRange, ) -> Result<(Box<[Css]>, Box<str>), BackendError>
Errors Read more
Source§fn get_html_fragment_async<A: AsyncEngine>(
&self,
uri: &DocumentUri,
range: DocumentRange,
) -> impl Future<Output = Result<(Box<[Css]>, Box<str>), BackendError>> + Send + use<A>
fn get_html_fragment_async<A: AsyncEngine>( &self, uri: &DocumentUri, range: DocumentRange, ) -> impl Future<Output = Result<(Box<[Css]>, Box<str>), BackendError>> + Send + use<A>
Errors Read more
Source§fn get_reference<T: Decode<()>>(
&self,
rf: &DocDataRef<T>,
) -> Result<T, BackendError>where
Self: Sized,
fn get_reference<T: Decode<()>>(
&self,
rf: &DocDataRef<T>,
) -> Result<T, BackendError>where
Self: Sized,
Errors Read more
Source§fn get_notations<E: AsyncEngine>(
&self,
uri: &SymbolUri,
) -> impl Iterator<Item = (DocumentElementUri, Notation)>where
Self: Sized,
fn get_notations<E: AsyncEngine>(
&self,
uri: &SymbolUri,
) -> impl Iterator<Item = (DocumentElementUri, Notation)>where
Self: Sized,
Available on crate feature
rdf only.Source§fn get_var_notations<E: AsyncEngine>(
&self,
uri: &DocumentElementUri,
) -> impl Iterator<Item = (DocumentElementUri, Notation)>where
Self: Sized,
fn get_var_notations<E: AsyncEngine>(
&self,
uri: &DocumentElementUri,
) -> impl Iterator<Item = (DocumentElementUri, Notation)>where
Self: Sized,
Available on crate feature
rdf only.Source§fn get_declaration<T: IsDeclaration>(
&self,
uri: &SymbolUri,
) -> Result<SharedDeclaration<T>, BackendError>where
Self: Sized,
fn get_declaration<T: IsDeclaration>(
&self,
uri: &SymbolUri,
) -> Result<SharedDeclaration<T>, BackendError>where
Self: Sized,
Errors Read more
Source§fn get_document_element(
&self,
uri: &DocumentElementUri,
) -> Result<SharedDocumentElement<DocumentElement>, BackendError>where
Self: Sized,
fn get_document_element(
&self,
uri: &DocumentElementUri,
) -> Result<SharedDocumentElement<DocumentElement>, BackendError>where
Self: Sized,
Errors Read more
Source§async fn get_document_element_async<A: AsyncEngine>(
&self,
uri: &DocumentElementUri,
) -> Result<SharedDocumentElement<DocumentElement>, BackendError>where
Self: Sized,
async fn get_document_element_async<A: AsyncEngine>(
&self,
uri: &DocumentElementUri,
) -> Result<SharedDocumentElement<DocumentElement>, BackendError>where
Self: Sized,
Errors Read more
Source§fn get_typed_document_element<T: IsDocumentElement>(
&self,
uri: &DocumentElementUri,
) -> Result<SharedDocumentElement<T>, BackendError>where
Self: Sized,
fn get_typed_document_element<T: IsDocumentElement>(
&self,
uri: &DocumentElementUri,
) -> Result<SharedDocumentElement<T>, BackendError>where
Self: Sized,
Errors Read more
Source§async fn get_typed_document_element_async<A: AsyncEngine, T: IsDocumentElement>(
&self,
uri: &DocumentElementUri,
) -> Result<SharedDocumentElement<T>, BackendError>where
Self: Sized,
async fn get_typed_document_element_async<A: AsyncEngine, T: IsDocumentElement>(
&self,
uri: &DocumentElementUri,
) -> Result<SharedDocumentElement<T>, BackendError>where
Self: Sized,
Errors Read more
fn uri_of(&self, p: &Path) -> Option<DocumentUri>where
Self: Sized,
fn archive_of_source<R>(
&self,
p: &Path,
f: impl FnMut(&LocalArchive, RelPath<'_>) -> R,
) -> Option<R>where
Self: Sized,
fn archive_of<R>(
&self,
p: &Path,
f: impl FnMut(&LocalArchive, RelPath<'_>) -> R,
) -> Option<R>where
Self: Sized,
fn with_local_archive<R>(
&self,
id: &ArchiveId,
f: impl FnOnce(Option<&LocalArchive>) -> R,
) -> Rwhere
Self: Sized,
fn with_buildable_archive<R>(
&self,
id: &ArchiveId,
f: impl FnOnce(Option<&dyn BuildableArchive>) -> R,
) -> Rwhere
Self: Sized,
Auto Trait Implementations§
impl !RefUnwindSafe for SandboxedBackend
impl !UnwindSafe for SandboxedBackend
impl Freeze for SandboxedBackend
impl Send for SandboxedBackend
impl Sync for SandboxedBackend
impl Unpin for SandboxedBackend
impl UnsafeUnpin for SandboxedBackend
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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> Fruit for Twhere
T: Send + Downcast,
§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 moreSource§impl<ET, Err, A> IntoErr<ET, Err> for Awhere
ET: EngineTypes,
Err: From<A>,
impl<ET, Err, A> IntoErr<ET, Err> for Awhere
ET: EngineTypes,
Err: From<A>,
§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> Read<Exclusive, BecauseExclusive> 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.