Skip to main content

SyncPackageStore

Trait SyncPackageStore 

Source
pub trait SyncPackageStore {
    // Required method
    fn fetch(&self, id: AccountAddress) -> Result<Arc<Package>>;
}
Expand description

Synchronous analogue of PackageStore, driving SyncResolver. Has no Send/Sync/'static bounds so implementations can borrow freely.

Required Methods§

Source

fn fetch(&self, id: AccountAddress) -> Result<Arc<Package>>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<S: BackingPackageStore> SyncPackageStore for S

Every [BackingPackageStore] implementation is usable as a SyncPackageStore. The blanket also covers &B, Arc<B>, Box<B> for any B: BackingPackageStore via [BackingPackageStore]’s own forwarding impls.

Source§

impl<T: SyncPackageStore> SyncPackageStore for &PackageStoreWithLruCache<T>

Source§

impl<T: SyncPackageStore> SyncPackageStore for PackageStoreWithLruCache<T>