pub struct IndexReader;Implementations§
Source§impl IndexReader
impl IndexReader
Sourcepub fn read_all(
index_dir: &Path,
) -> Result<Vec<BlockIndexEntry>, BlkReaderError>
pub fn read_all( index_dir: &Path, ) -> Result<Vec<BlockIndexEntry>, BlkReaderError>
Reads all LevelDB index entries from Bitcoin Core in index_dir.
If opening fails due to a lock (common if Bitcoin Core is running), attempts to create a temporary copy of index files for reading.
Auto Trait Implementations§
impl Freeze for IndexReader
impl RefUnwindSafe for IndexReader
impl Send for IndexReader
impl Sync for IndexReader
impl Unpin for IndexReader
impl UnsafeUnpin for IndexReader
impl UnwindSafe for IndexReader
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more