Back to Eqiora docs Skip to main content

PackageStore

Trait PackageStore 

pub trait PackageStore {
    // Required method
    fn load_exact(
        &self,
        expected: SourceBundleDigest,
        max_bytes: usize,
    ) -> Result<Option<Vec<u8>>, StoreError>;
}
Description

A source-bundle-addressed store with no discovery or fallback operation.

Required Methods§

fn load_exact( &self, expected: SourceBundleDigest, max_bytes: usize, ) -> Result<Option<Vec<u8>>, StoreError>

Loads only expected, refusing an entry larger than max_bytes before copying or reading its payload into memory.

Implementors§