pub struct WorkloadConfig {
pub namespace: String,
pub collection: String,
pub writers: usize,
pub shared_keys: usize,
pub ops_per_writer: usize,
pub unique_per_writer: usize,
pub max_conflict_retries: usize,
}Expand description
Workload shape. The bounded gate and the deep soak both use this; they differ only in the magnitudes and (for the deep soak) running against a duration.
Fields§
§namespace: String§collection: String§writers: usize§ops_per_writer: usize§unique_per_writer: usize§max_conflict_retries: usizeTrait Implementations§
Source§impl Clone for WorkloadConfig
impl Clone for WorkloadConfig
Source§fn clone(&self) -> WorkloadConfig
fn clone(&self) -> WorkloadConfig
Returns a duplicate 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 moreSource§impl Debug for WorkloadConfig
impl Debug for WorkloadConfig
Auto Trait Implementations§
impl Freeze for WorkloadConfig
impl RefUnwindSafe for WorkloadConfig
impl Send for WorkloadConfig
impl Sync for WorkloadConfig
impl Unpin for WorkloadConfig
impl UnsafeUnpin for WorkloadConfig
impl UnwindSafe for WorkloadConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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