pub struct BatchFragmentGenerator<'a, S: SyncNode + Send> {
wallets: Vec<Wallet>,
jormungandr: RemoteJormungandr,
fragment_sender: FragmentSender<'a, S>,
rand: OsRng,
split_lane: SplitLaneIter,
batch_size: u8,
}
Fields§
§wallets: Vec<Wallet>
§jormungandr: RemoteJormungandr
§fragment_sender: FragmentSender<'a, S>
§rand: OsRng
§split_lane: SplitLaneIter
§batch_size: u8
Implementations§
source§impl<'a, S: SyncNode + Send> BatchFragmentGenerator<'a, S>
impl<'a, S: SyncNode + Send> BatchFragmentGenerator<'a, S>
pub fn from_node_with_setup( setup: FragmentSenderSetup<'a, S>, jormungandr: &JormungandrProcess, block_date: BlockDateGenerator, batch_size: u8 ) -> Result<Self, RestError>
source§impl<'a, S: SyncNode + Send> BatchFragmentGenerator<'a, S>
impl<'a, S: SyncNode + Send> BatchFragmentGenerator<'a, S>
pub fn new( fragment_sender_setup: FragmentSenderSetup<'a, S>, jormungandr: RemoteJormungandr, block_hash: Hash, fees: LinearFee, expiry_generator: BlockDateGenerator, batch_size: u8 ) -> Self
pub fn fill_from_faucet(&mut self, faucet: &mut Wallet)
pub fn generate_transaction(&mut self) -> Result<Fragment, RequestFailure>
pub fn batch_size(&self) -> u8
pub fn generate_batch_transaction( &mut self ) -> Result<Vec<Fragment>, RequestFailure>
pub fn send_batch(&mut self) -> Result<Request, RequestFailure>
Trait Implementations§
Auto Trait Implementations§
impl<'a, S> !RefUnwindSafe for BatchFragmentGenerator<'a, S>
impl<'a, S> Send for BatchFragmentGenerator<'a, S>where S: Sync,
impl<'a, S> !Sync for BatchFragmentGenerator<'a, S>
impl<'a, S> Unpin for BatchFragmentGenerator<'a, S>
impl<'a, S> !UnwindSafe for BatchFragmentGenerator<'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