Struct reproto_repository::CachedObjects
[−]
[src]
pub struct CachedObjects<T> { /* fields omitted */ }
Methods
impl<T: Objects> CachedObjects<T>
[src]
pub fn new(
objects_cache: PathBuf,
missing_cache_time: Duration,
inner: T
) -> CachedObjects<T>
[src]
objects_cache: PathBuf,
missing_cache_time: Duration,
inner: T
) -> CachedObjects<T>
Trait Implementations
impl<T: Objects> Objects for CachedObjects<T>
[src]
fn put_object(
&mut self,
checksum: &Checksum,
source: &mut Read,
force: bool
) -> Result<()>
[src]
&mut self,
checksum: &Checksum,
source: &mut Read,
force: bool
) -> Result<()>
Put the given object into the database. This will cause the object denoted by the given checksum to be uploaded to the objects store. Read more
fn get_object(&mut self, checksum: &Checksum) -> Result<Option<Box<Object>>>
[src]
Get a path to the object with the given checksum. This might cause the object to be downloaded if it's not already present in the local filesystem. Read more
fn update(&self) -> Result<Vec<Update>>
[src]
Update local caches related to the object store.
Auto Trait Implementations
impl<T> Send for CachedObjects<T> where
T: Send,
T: Send,
impl<T> Sync for CachedObjects<T> where
T: Sync,
T: Sync,