[−][src]Struct ckb_tx_pool::service::TxPoolController
TODO(doc): @zhangsoledad
Implementations
impl TxPoolController[src]
pub fn handle(&self) -> &Handle[src]
TODO(doc): @zhangsoledad
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>
TODO(doc): @zhangsoledad
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>
TODO(doc): @zhangsoledad
pub fn notify_new_uncle(
&self,
uncle: UncleBlockView
) -> Result<(), FailureError>[src]
&self,
uncle: UncleBlockView
) -> Result<(), FailureError>
TODO(doc): @zhangsoledad
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>
TODO(doc): @zhangsoledad
pub fn submit_txs(
&self,
txs: Vec<TransactionView>
) -> Result<SubmitTxsResult, FailureError>[src]
&self,
txs: Vec<TransactionView>
) -> Result<SubmitTxsResult, FailureError>
TODO(doc): @zhangsoledad
pub fn plug_entry(
&self,
entries: Vec<TxEntry>,
target: PlugTarget
) -> Result<(), FailureError>[src]
&self,
entries: Vec<TxEntry>,
target: PlugTarget
) -> Result<(), FailureError>
TODO(doc): @zhangsoledad
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>
TODO(doc): @zhangsoledad
pub fn get_tx_pool_info(&self) -> Result<TxPoolInfo, FailureError>[src]
TODO(doc): @zhangsoledad
pub fn fresh_proposals_filter(
&self,
proposals: Vec<ProposalShortId>
) -> Result<Vec<ProposalShortId>, FailureError>[src]
&self,
proposals: Vec<ProposalShortId>
) -> Result<Vec<ProposalShortId>, FailureError>
TODO(doc): @zhangsoledad
pub fn fetch_tx_for_rpc(
&self,
id: ProposalShortId
) -> Result<Option<(bool, TransactionView)>, FailureError>[src]
&self,
id: ProposalShortId
) -> Result<Option<(bool, TransactionView)>, FailureError>
TODO(doc): @zhangsoledad
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>
TODO(doc): @zhangsoledad
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>
TODO(doc): @zhangsoledad
pub fn clear_pool(
&self,
new_snapshot: Arc<Snapshot>
) -> Result<(), FailureError>[src]
&self,
new_snapshot: Arc<Snapshot>
) -> Result<(), FailureError>
TODO(doc): @zhangsoledad
Trait Implementations
impl Clone for TxPoolController[src]
pub fn clone(&self) -> TxPoolController[src]
pub 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,
pub 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> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
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.
pub fn to_owned(&self) -> T[src]
pub 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.
pub 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.
pub 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>,