pub struct AdversaryFragmentGenerator<'a, S: SyncNode + Send> {
wallets: Vec<Wallet>,
jormungandr: RemoteJormungandr,
fragment_sender: FragmentSender<'a, S>,
adversary_fragment_sender: AdversaryFragmentSender<'a, S>,
rand: OsRng,
split_marker: usize,
max_splits: usize,
}
Fields§
§wallets: Vec<Wallet>
§jormungandr: RemoteJormungandr
§fragment_sender: FragmentSender<'a, S>
§adversary_fragment_sender: AdversaryFragmentSender<'a, S>
§rand: OsRng
§split_marker: usize
§max_splits: usize
Implementations§
source§impl<'a, S: SyncNode + Send> AdversaryFragmentGenerator<'a, S>
impl<'a, S: SyncNode + Send> AdversaryFragmentGenerator<'a, S>
pub fn new( jormungandr: RemoteJormungandr, fragment_sender: FragmentSender<'a, S>, adversary_fragment_sender: AdversaryFragmentSender<'a, S> ) -> Self
pub fn fill_from_faucet(&mut self, faucet: &mut Wallet)
pub fn increment_split_marker(&mut self)
pub fn send_transaction(&mut self) -> Result<FragmentId, RequestFailure>
Trait Implementations§
Auto Trait Implementations§
impl<'a, S> !RefUnwindSafe for AdversaryFragmentGenerator<'a, S>
impl<'a, S> Send for AdversaryFragmentGenerator<'a, S>where S: Sync,
impl<'a, S> !Sync for AdversaryFragmentGenerator<'a, S>
impl<'a, S> Unpin for AdversaryFragmentGenerator<'a, S>
impl<'a, S> !UnwindSafe for AdversaryFragmentGenerator<'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