pub fn single(
        base_url: Url,
        configuration: &SwanlingConfiguration,
    ) -> Result<Self, SwanlingError> {
        let mut single_user = SwanlingUser::new(0, base_url, 0, 0, configuration, 0)?;
        // Only one user, so index is 0.
        single_user.weighted_users_index = 0;
        // Do not throttle [`test_start`](../struct.SwanlingAttack.html#method.test_start) (setup) and
        // [`test_stop`](../struct.SwanlingAttack.html#method.test_stop) (teardown) tasks.
        single_user.is_throttled = false;

        Ok(single_user)
    }
/// Create a new single-use user.
Create a new single-use user.
Create a new single - use user .
pub fn single(
        base_url: Url,
        configuration: &SwanlingConfiguration,
    ) -> Result<Self, SwanlingError> {
        let mut single_user = SwanlingUser::new(0, base_url, 0, 0, configuration, 0)?;
        // Only one user, so index is 0.
        single_user.weighted_users_index = 0;
        // Do not throttle [`test_start`](../struct.SwanlingAttack.html#method.test_start) (setup) and
        // [`test_stop`](../struct.SwanlingAttack.html#method.test_stop) (teardown) tasks.
        single_user.is_throttled = false;
        Ok(single_user)
    }
pub fn single ( base_url : Url , configuration : & SwanlingConfiguration , ) -> Result < Self , SwanlingError > { let mut single_user = SwanlingUser :: new ( 0 , base_url , 0 , 0 , configuration , 0 ) ? ; // Only one user, so index is 0. single_user . weighted_users_index = 0 ; // Do not throttle [`test_start`](../struct.SwanlingAttack.html#method.test_start) (setup) and // [`test_stop`](../struct.SwanlingAttack.html#method.test_stop) (teardown) tasks. single_user . is_throttled = false ; Ok ( single_user ) }
Create a new single-use user.
Create a new single - use user .
base_url
Url
configuration
&SwanlingConfiguration