DBRawIterator can be Sync

master
Gary Guo 5 years ago
parent 23608e905e
commit 266b83efd0
  1. 1
      src/db.rs

@ -2017,6 +2017,7 @@ unsafe impl Send for ReadOptions {}
// Sync is similarly safe for many types because they do not expose interior mutability, and their
// use within the rocksdb library is generally behind a const reference
unsafe impl<'a> Sync for DBRawIterator<'a> {}
unsafe impl Sync for ReadOptions {}
/// Vector of bytes stored in the database.

Loading…
Cancel
Save