pub struct TransactionExecutor {
sig_clear_t: JoinHandle<()>,
sigs: Arc<RwLock<Vec<(Signature, u64, u64)>>>,
cleared: Arc<RwLock<Vec<u64>>>,
exit: Arc<AtomicBool>,
counter: AtomicU64,
client: Arc<RpcClient>,
}
Fields§
§sig_clear_t: JoinHandle<()>
§sigs: Arc<RwLock<Vec<(Signature, u64, u64)>>>
§cleared: Arc<RwLock<Vec<u64>>>
§exit: Arc<AtomicBool>
§counter: AtomicU64
§client: Arc<RpcClient>
Implementations§
source§impl TransactionExecutor
impl TransactionExecutor
pub fn new(entrypoint_addr: SocketAddr) -> Self
pub fn new_with_url<U: ToString>(url: U) -> Self
pub fn new_with_rpc_client(client: Arc<RpcClient>) -> Self
pub fn num_outstanding(&self) -> usize
pub fn push_transactions(&self, txs: Vec<Transaction>) -> Vec<u64>
pub fn drain_cleared(&self) -> Vec<u64>
pub fn close(self)
fn start_sig_clear_thread( exit: &Arc<AtomicBool>, sigs: &Arc<RwLock<Vec<(Signature, u64, u64)>>>, cleared: &Arc<RwLock<Vec<u64>>>, client: &Arc<RpcClient> ) -> JoinHandle<()>
Auto Trait Implementations§
impl !RefUnwindSafe for TransactionExecutor
impl Send for TransactionExecutor
impl Sync for TransactionExecutor
impl Unpin for TransactionExecutor
impl !UnwindSafe for TransactionExecutor
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere T: 'a,
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