Struct mjolnir::mjolnir_lib::bootstrap::scenario::duration::DurationBasedClientLoad
source · pub struct DurationBasedClientLoad {
config: ClientLoadConfig,
duration: u64,
}
Fields§
§config: ClientLoadConfig
§duration: u64
Implementations§
source§impl DurationBasedClientLoad
impl DurationBasedClientLoad
pub fn new(config: ClientLoadConfig, duration: u64) -> Self
pub fn run(&self) -> Result<(), MjolnirError>
fn wait_for_bootstrap_phase_completed( node: &JormungandrProcess, instant: &Instant, target: u64, benchmark: SpeedBenchmarkRun, progress_bar: &ScenarioProgressBar ) -> Result<Option<SpeedBenchmarkFinish>, MjolnirError>
fn run_single( &self, id: u32, duration: u64, multi_progress: &MultiProgress ) -> Result<JoinHandle<Result<Vec<SpeedBenchmarkFinish>, MjolnirError>>, MjolnirError>
Auto Trait Implementations§
impl RefUnwindSafe for DurationBasedClientLoad
impl Send for DurationBasedClientLoad
impl Sync for DurationBasedClientLoad
impl Unpin for DurationBasedClientLoad
impl UnwindSafe for DurationBasedClientLoad
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