pub struct BlkReaderConfig {
pub blocks_dir: PathBuf,
pub index_dir: PathBuf,
pub start_height: u32,
pub end_height: u32,
pub read_buffer_bytes: usize,
}Expand description
Configuration for BlockIterator.
Fields§
§blocks_dir: PathBufPath to the blocks/ directory (e.g. ~/.bitcoin/blocks).
index_dir: PathBufPath to the blocks/index/ LevelDB directory.
start_height: u32First block height to yield (inclusive). Default: 0.
end_height: u32Last block height to yield (exclusive). Default: u32::MAX.
read_buffer_bytes: usizeI/O read buffer per open file in bytes. Default: 8 MiB.
Trait Implementations§
Source§impl Clone for BlkReaderConfig
impl Clone for BlkReaderConfig
Source§fn clone(&self) -> BlkReaderConfig
fn clone(&self) -> BlkReaderConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BlkReaderConfig
impl Debug for BlkReaderConfig
Auto Trait Implementations§
impl Freeze for BlkReaderConfig
impl RefUnwindSafe for BlkReaderConfig
impl Send for BlkReaderConfig
impl Sync for BlkReaderConfig
impl Unpin for BlkReaderConfig
impl UnsafeUnpin for BlkReaderConfig
impl UnwindSafe for BlkReaderConfig
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