pub struct TransactionPool { /* private fields */ }Implementations§
Source§impl TransactionPool
impl TransactionPool
pub fn new() -> Self
pub fn add_transaction(&mut self, tx: Transaction)
pub fn get_transactions(&self) -> &Vec<Transaction>
pub fn clear(&mut self)
pub fn remove_executed(&mut self, _executed_count: usize)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TransactionPool
impl RefUnwindSafe for TransactionPool
impl Send for TransactionPool
impl Sync for TransactionPool
impl Unpin for TransactionPool
impl UnsafeUnpin for TransactionPool
impl UnwindSafe for TransactionPool
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