Function ckb_index::with_rocksdb[][src]

pub fn with_rocksdb<P, T, F>(
    path: P,
    timeout: Option<Duration>,
    func: F
) -> Result<T, Error> where
    P: AsRef<Path>,
    F: FnOnce(&DB) -> Result<T, Error>,