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
source§impl<T> Instrument for T
 
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
 
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
 
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
 
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
 
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
 
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more