pub struct ChainstateManagerOptions { /* private fields */ }
Expand description
Holds the configuration options for creating a new ChainstateManager
Implementations§
Source§impl ChainstateManagerOptions
impl ChainstateManagerOptions
Sourcepub fn new(context: &Context, data_dir: &str) -> Result<Self, KernelError>
pub fn new(context: &Context, data_dir: &str) -> Result<Self, KernelError>
Create a new option
§Arguments
context
- TheChainstateManager
for which these options are created has to use the sameContext
.data_dir
- The directory into which theChainstateManager
will write its data.
pub fn set_worker_threads(&self, worker_threads: i32)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ChainstateManagerOptions
impl RefUnwindSafe for ChainstateManagerOptions
impl !Send for ChainstateManagerOptions
impl !Sync for ChainstateManagerOptions
impl Unpin for ChainstateManagerOptions
impl UnwindSafe for ChainstateManagerOptions
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