pub struct AcceleratorCatalog<S: Store> { /* private fields */ }Implementations§
Source§impl<S> AcceleratorCatalog<S>
impl<S> AcceleratorCatalog<S>
pub fn build( store: S, source: &ProximityTree, accelerators: AcceleratorSet<S>, ) -> Result<Self, Error>
pub fn load( store: S, manifest: Cid, source: &ProximityTree, ) -> Result<Self, Error>
pub fn manifest_cid(&self) -> &Cid
pub fn typed_root(&self) -> TypedContentRoot
pub fn source_descriptor(&self) -> &Cid
pub fn entries(&self) -> &[AcceleratorCatalogEntry]
pub fn accelerators(&self) -> &AcceleratorSet<S>
pub fn into_accelerators(self) -> AcceleratorSet<S>
Source§impl<S> AcceleratorCatalog<S>
impl<S> AcceleratorCatalog<S>
Sourcepub fn prove_search(
&self,
map: &ProximityMap<S>,
request: SearchRequest<'_>,
limits: &ContentGraphLimits,
) -> Result<ProximitySearchProof, Error>
pub fn prove_search( &self, map: &ProximityMap<S>, request: SearchRequest<'_>, limits: &ContentGraphLimits, ) -> Result<ProximitySearchProof, Error>
Prove execution against one pinned accelerator-catalog snapshot and its exact closure.
Auto Trait Implementations§
impl<S> !Freeze for AcceleratorCatalog<S>
impl<S> RefUnwindSafe for AcceleratorCatalog<S>where
S: RefUnwindSafe,
impl<S> Send for AcceleratorCatalog<S>
impl<S> Sync for AcceleratorCatalog<S>
impl<S> Unpin for AcceleratorCatalog<S>where
S: Unpin,
impl<S> UnsafeUnpin for AcceleratorCatalog<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for AcceleratorCatalog<S>where
S: UnwindSafe,
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> 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