Struct fuel_core::service::adapters::TxPoolAdapter
source · pub struct TxPoolAdapter { /* private fields */ }
Implementations§
source§impl TxPoolAdapter
impl TxPoolAdapter
pub fn new(service: TxPoolSharedState<P2PAdapter, Database>) -> Self
Trait Implementations§
source§impl Clone for TxPoolAdapter
impl Clone for TxPoolAdapter
source§fn clone(&self) -> TxPoolAdapter
fn clone(&self) -> TxPoolAdapter
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl TransactionPool for TxPoolAdapter
impl TransactionPool for TxPoolAdapter
source§fn pending_number(&self) -> usize
fn pending_number(&self) -> usize
Returns the number of pending transactions in the
TxPool
.fn total_consumable_gas(&self) -> u64
fn remove_txs(&self, ids: Vec<TxId>) -> Vec<ArcPoolTx>
fn transaction_status_events(&self) -> BoxStream<TxStatus>
source§impl TxPool for TxPoolAdapter
impl TxPool for TxPoolAdapter
§type TxSource = TransactionsSource
type TxSource = TransactionsSource
The source of the transactions used by the executor.
source§fn get_source(&self, block_height: BlockHeight) -> Self::TxSource
fn get_source(&self, block_height: BlockHeight) -> Self::TxSource
Returns the source of includable transactions.
source§impl TxPoolPort for TxPoolAdapter
impl TxPoolPort for TxPoolAdapter
fn transaction(&self, id: TxId) -> Option<Transaction>
fn submission_time(&self, id: TxId) -> Option<Tai64>
fn insert(&self, txs: Vec<Arc<Transaction>>) -> Vec<Result<InsertionResult>>
fn tx_update_subscribe( &self ) -> BoxStream<Result<TxUpdate, BroadcastStreamRecvError>>
Auto Trait Implementations§
impl !RefUnwindSafe for TxPoolAdapter
impl Send for TxPoolAdapter
impl Sync for TxPoolAdapter
impl Unpin for TxPoolAdapter
impl !UnwindSafe for TxPoolAdapter
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