pub struct TransactionGenerator<'a, S: SyncNode + Send> {
wallets: Vec<Wallet>,
jormungandr: RemoteJormungandr,
fragment_sender: FragmentSender<'a, S>,
rand: OsRng,
split_lane: SplitLaneIter,
}
Fields§
§wallets: Vec<Wallet>
§jormungandr: RemoteJormungandr
§fragment_sender: FragmentSender<'a, S>
§rand: OsRng
§split_lane: SplitLaneIter
Implementations§
source§impl<'a, S: SyncNode + Send> TransactionGenerator<'a, S>
impl<'a, S: SyncNode + Send> TransactionGenerator<'a, S>
pub fn new( fragment_sender_setup: FragmentSenderSetup<'a, S>, jormungandr: RemoteJormungandr, block_hash: Hash, fees: LinearFee, expiry_generator: BlockDateGenerator ) -> Self
pub fn fill_from_faucet(&mut self, faucet: &mut Wallet)
pub fn send_transaction(&mut self) -> Result<FragmentId, RequestFailure>
Trait Implementations§
Auto Trait Implementations§
impl<'a, S> !RefUnwindSafe for TransactionGenerator<'a, S>
impl<'a, S> Send for TransactionGenerator<'a, S>where S: Sync,
impl<'a, S> !Sync for TransactionGenerator<'a, S>
impl<'a, S> Unpin for TransactionGenerator<'a, S>
impl<'a, S> !UnwindSafe for TransactionGenerator<'a, S>
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request