[−][src]Struct ckb_tx_pool::service::TxPoolController
Implementations
impl TxPoolController
[src]
pub fn handle(&self) -> &Handle
[src]
pub fn get_block_template(
&self,
bytes_limit: Option<u64>,
proposals_limit: Option<u64>,
max_version: Option<Version>
) -> Result<BlockTemplateResult, FailureError>
[src]
&self,
bytes_limit: Option<u64>,
proposals_limit: Option<u64>,
max_version: Option<Version>
) -> Result<BlockTemplateResult, FailureError>
pub fn get_block_template_with_block_assembler_config(
&self,
bytes_limit: Option<u64>,
proposals_limit: Option<u64>,
max_version: Option<Version>,
block_assembler_config: Option<BlockAssemblerConfig>
) -> Result<BlockTemplateResult, FailureError>
[src]
&self,
bytes_limit: Option<u64>,
proposals_limit: Option<u64>,
max_version: Option<Version>,
block_assembler_config: Option<BlockAssemblerConfig>
) -> Result<BlockTemplateResult, FailureError>
pub fn notify_new_uncle(
&self,
uncle: UncleBlockView
) -> Result<(), FailureError>
[src]
&self,
uncle: UncleBlockView
) -> Result<(), FailureError>
pub fn update_tx_pool_for_reorg(
&self,
detached_blocks: VecDeque<BlockView>,
attached_blocks: VecDeque<BlockView>,
detached_proposal_id: HashSet<ProposalShortId>,
snapshot: Arc<Snapshot>
) -> Result<(), FailureError>
[src]
&self,
detached_blocks: VecDeque<BlockView>,
attached_blocks: VecDeque<BlockView>,
detached_proposal_id: HashSet<ProposalShortId>,
snapshot: Arc<Snapshot>
) -> Result<(), FailureError>
pub fn submit_txs(
&self,
txs: Vec<TransactionView>
) -> Result<SubmitTxsResult, FailureError>
[src]
&self,
txs: Vec<TransactionView>
) -> Result<SubmitTxsResult, FailureError>
pub fn plug_entry(
&self,
entries: Vec<TxEntry>,
target: PlugTarget
) -> Result<(), FailureError>
[src]
&self,
entries: Vec<TxEntry>,
target: PlugTarget
) -> Result<(), FailureError>
pub fn notify_txs(
&self,
txs: Vec<TransactionView>,
callback: Option<Box<dyn FnOnce(SubmitTxsResult) + Send + Sync + 'static>>
) -> Result<(), FailureError>
[src]
&self,
txs: Vec<TransactionView>,
callback: Option<Box<dyn FnOnce(SubmitTxsResult) + Send + Sync + 'static>>
) -> Result<(), FailureError>
pub fn get_tx_pool_info(&self) -> Result<TxPoolInfo, FailureError>
[src]
pub fn fresh_proposals_filter(
&self,
proposals: Vec<ProposalShortId>
) -> Result<Vec<ProposalShortId>, FailureError>
[src]
&self,
proposals: Vec<ProposalShortId>
) -> Result<Vec<ProposalShortId>, FailureError>
pub fn fetch_tx_for_rpc(
&self,
id: ProposalShortId
) -> Result<Option<(bool, TransactionView)>, FailureError>
[src]
&self,
id: ProposalShortId
) -> Result<Option<(bool, TransactionView)>, FailureError>
pub fn fetch_txs(
&self,
short_ids: Vec<ProposalShortId>
) -> Result<HashMap<ProposalShortId, TransactionView>, FailureError>
[src]
&self,
short_ids: Vec<ProposalShortId>
) -> Result<HashMap<ProposalShortId, TransactionView>, FailureError>
pub fn fetch_txs_with_cycles(
&self,
short_ids: Vec<ProposalShortId>
) -> Result<Vec<(ProposalShortId, (TransactionView, Cycle))>, FailureError>
[src]
&self,
short_ids: Vec<ProposalShortId>
) -> Result<Vec<(ProposalShortId, (TransactionView, Cycle))>, FailureError>
pub fn clear_pool(
&self,
new_snapshot: Arc<Snapshot>
) -> Result<(), FailureError>
[src]
&self,
new_snapshot: Arc<Snapshot>
) -> Result<(), FailureError>
Trait Implementations
impl Clone for TxPoolController
[src]
fn clone(&self) -> TxPoolController
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Drop for TxPoolController
[src]
Auto Trait Implementations
impl !RefUnwindSafe for TxPoolController
impl Send for TxPoolController
impl Sync for TxPoolController
impl Unpin for TxPoolController
impl !UnwindSafe for TxPoolController
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> AsAny for T where
T: Any,
T: Any,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Erased for T
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,