Struct mjolnir::mjolnir_lib::generators::explorer::ExplorerRequestGen
source · pub struct ExplorerRequestGen {
explorer: Explorer,
rand: OsRng,
addresses: Vec<String>,
stake_pools: Vec<String>,
max_splits: usize,
}
Fields§
§explorer: Explorer
§rand: OsRng
§addresses: Vec<String>
§stake_pools: Vec<String>
§max_splits: usize
Implementations§
source§impl ExplorerRequestGen
impl ExplorerRequestGen
pub fn new(explorer: Explorer) -> Self
pub fn do_setup(&mut self, addresses: Vec<String>) -> Result<(), ExplorerError>
pub fn next_usize(&mut self) -> usize
pub fn next_usize_in_range(&mut self, lower: usize, upper: usize) -> usize
pub fn next_address(&mut self) -> Option<&String>
pub fn next_pool_id(&mut self) -> Option<&String>
Trait Implementations§
source§impl Clone for ExplorerRequestGen
impl Clone for ExplorerRequestGen
source§fn clone(&self) -> ExplorerRequestGen
fn clone(&self) -> ExplorerRequestGen
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl RefUnwindSafe for ExplorerRequestGen
impl Send for ExplorerRequestGen
impl Sync for ExplorerRequestGen
impl Unpin for ExplorerRequestGen
impl UnwindSafe for ExplorerRequestGen
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