fn load_cache(
    digest_path: &Path,
    redirect_base: &Path,
    index_base: &Path,
) -> Result<Option<CacheContent>> {
    // Convert file-not-found errors into None.
    match load_cache_inner(digest_path, redirect_base, index_base) {
        Ok(r) => Ok(Some(r)),
        Err(Error(ErrorKind::Io(ref e), _)) if e.kind() == IoErrorKind::NotFound => Ok(None),
        Err(e) => Err(e),
    }
}
/// Load cached data.
///
/// If any of the files is not found return None.
Load cached data.
If any of the files is not found return None.
Load cached data . If any of the files is not found return None .
fn load_cache(
    digest_path: &Path,
    redirect_base: &Path,
    index_base: &Path,
) -> Result<Option<CacheContent>> {
    // Convert file-not-found errors into None.
    match load_cache_inner(digest_path, redirect_base, index_base) {
        Ok(r) => Ok(Some(r)),
        Err(Error(ErrorKind::Io(ref e), _)) if e.kind() == IoErrorKind::NotFound => Ok(None),
        Err(e) => Err(e),
    }
}
fn load_cache ( digest_path : & Path , redirect_base : & Path , index_base : & Path , ) -> Result < Option < CacheContent > > { // Convert file-not-found errors into None. match load_cache_inner ( digest_path , redirect_base , index_base ) { Ok ( r ) => Ok ( Some ( r ) ) , Err ( Error ( ErrorKind :: Io ( ref e ) , _ ) ) if e . kind ( ) == IoErrorKind :: NotFound => Ok ( None ) , Err ( e ) => Err ( e ) , } }
Load cached data.
Load cached data .
digest_path
&Path
redirect_base
&Path
index_base
&Path