Skip to main content

Store

Trait Store 

Source
pub trait Store: Send + Sync {
    // Required methods
    fn releases(&self, pack: &PackName) -> Vec<StoredRelease>;
    fn file(&self, place: &Place) -> Option<Vec<u8>>;
}
Expand description

Where a host keeps packs beyond the bundle.

Required Methods§

Source

fn releases(&self, pack: &PackName) -> Vec<StoredRelease>

The releases of pack it holds, in any order.

Source

fn file(&self, place: &Place) -> Option<Vec<u8>>

The bytes of the file at place, when it holds them.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§