Struct ckb_shared::shared_builder::SharedBuilder
source · pub struct SharedBuilder { /* private fields */ }Expand description
Shared builder for construct new shared.
Implementations§
sourcepub fn new(
bin_name: &str,
root_dir: &Path,
db_config: &DBConfig,
ancient: Option<PathBuf>,
async_handle: Handle,
consensus: Consensus
) -> Result<SharedBuilder, ExitCode>
pub fn new( bin_name: &str, root_dir: &Path, db_config: &DBConfig, ancient: Option<PathBuf>, async_handle: Handle, consensus: Consensus ) -> Result<SharedBuilder, ExitCode>
Generates the base SharedBuilder with ancient path and async_handle
sourcepub fn with_temp_db() -> Self
pub fn with_temp_db() -> Self
Generates the SharedBuilder with temp db NOTICE: this is only used in testing
sourcepub fn tx_pool_config(self, config: TxPoolConfig) -> Self
pub fn tx_pool_config(self, config: TxPoolConfig) -> Self
TODO(doc): @quake
sourcepub fn notify_config(self, config: NotifyConfig) -> Self
pub fn notify_config(self, config: NotifyConfig) -> Self
TODO(doc): @quake
sourcepub fn store_config(self, config: StoreConfig) -> Self
pub fn store_config(self, config: StoreConfig) -> Self
TODO(doc): @quake
sourcepub fn block_assembler_config(
self,
config: Option<BlockAssemblerConfig>
) -> Self
pub fn block_assembler_config( self, config: Option<BlockAssemblerConfig> ) -> Self
TODO(doc): @quake
sourcepub fn async_handle(self, async_handle: Handle) -> Self
pub fn async_handle(self, async_handle: Handle) -> Self
specifies the async_handle for the shared
Auto Trait Implementations§
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