1+ #![ feature( sanitize) ]
2+
13use core_affinity:: CoreId ;
24use serde:: { Deserialize , Deserializer } ;
35use std:: { collections:: HashMap , fmt:: Display , net:: Ipv4Addr , str:: FromStr } ;
@@ -28,7 +30,8 @@ pub struct WorkloadConfig {
2830 /// Custom workload configuration.
2931 pub workload : Workload ,
3032
31- /// For how long to run the worker. Default value is zero, meaning no limit.
33+ /// For how long to run the worker. Default value is zero, meaning no
34+ /// limit.
3235 #[ serde( default = "default_duration" ) ]
3336 pub duration : u64 ,
3437}
@@ -194,8 +197,8 @@ pub enum Workload {
194197 /// Maximum number of dynamic connections
195198 connections_dyn_max : u32 ,
196199
197- // How many connections to make to the same server address and port with
198- // different client ports
200+ /// How many connections to make to the same server address and port
201+ /// with different client ports
199202 #[ serde( default = "default_conns_per_addr" ) ]
200203 conns_per_addr : u16 ,
201204
@@ -211,7 +214,8 @@ pub enum Workload {
211214 /// Whether or not to wait for a connection to be removed before adding
212215 /// a new one, when the dynamic connection limit is reached.
213216 /// if true: an old connection will be forcibly removed
214- /// if false: wait for a connection to naturally age-off before adding a new one
217+ /// if false: wait for a connection to naturally age-off before adding
218+ /// a new one
215219 preempt : bool ,
216220 } ,
217221
0 commit comments