Struct ckb_shared::shared::Shared [−][src]
pub struct Shared { /* fields omitted */ }Expand description
TODO(doc): @quake
Implementations
impl Shared[src]
impl Shared[src]pub fn spawn_freeze(&self) -> Option<FreezerClose>[src]
pub fn spawn_freeze(&self) -> Option<FreezerClose>[src]Spawn freeze background thread that periodically checks and moves ancient data from the kv database into the freezer.
pub fn tx_pool_controller(&self) -> &TxPoolController[src]
pub fn tx_pool_controller(&self) -> &TxPoolController[src]TODO(doc): @quake
pub fn txs_verify_cache(&self) -> Arc<TokioRwLock<TxVerifyCache>>[src]
pub fn txs_verify_cache(&self) -> Arc<TokioRwLock<TxVerifyCache>>[src]TODO(doc): @quake
pub fn notify_controller(&self) -> &NotifyController[src]
pub fn notify_controller(&self) -> &NotifyController[src]TODO(doc): @quake
pub fn store_snapshot(&self, snapshot: Arc<Snapshot>)[src]
pub fn store_snapshot(&self, snapshot: Arc<Snapshot>)[src]TODO(doc): @quake
pub fn refresh_snapshot(&self)[src]
pub fn refresh_snapshot(&self)[src]TODO(doc): @quake
pub fn new_snapshot(
&self,
tip_header: HeaderView,
total_difficulty: U256,
epoch_ext: EpochExt,
proposals: ProposalView
) -> Arc<Snapshot>[src]
pub fn new_snapshot(
&self,
tip_header: HeaderView,
total_difficulty: U256,
epoch_ext: EpochExt,
proposals: ProposalView
) -> Arc<Snapshot>[src]TODO(doc): @quake
pub fn async_handle(&self) -> &Handle[src]
pub fn async_handle(&self) -> &Handle[src]Return async runtime handle
pub fn genesis_hash(&self) -> Byte32[src]
pub fn genesis_hash(&self) -> Byte32[src]TODO(doc): @quake
pub fn is_initial_block_download(&self) -> bool[src]
pub fn is_initial_block_download(&self) -> bool[src]Return whether chain is in initial block download
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Shared
impl Send for Shared
impl Sync for Shared
impl Unpin for Shared
impl !UnwindSafe for Shared
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,