pub fn register_taskset(mut self, mut taskset: SwanlingTaskSet) -> Self {
        taskset.task_sets_index = self.task_sets.len();
        self.task_sets.push(taskset);
        self
    }
/// A load test must contain one or more [`SwanlingTaskSet`](./swanling/struct.SwanlingTaskSet.html)s
/// be registered into Swanling's global state with this method for it to run.
///
/// # Example
/// ```rust
/// use swanling::prelude::*;
///
/// fn main() -> Result<(), SwanlingError> {
///     SwanlingAttack::initialize()?
///         .register_taskset(taskset!("ExampleTasks")
///             .register_task(task!(example_task))
///         )
///         .register_taskset(taskset!("OtherTasks")
///             .register_task(task!(other_task))
///         );
///
///     Ok(())
/// }
///
/// async fn example_task(user: &SwanlingUser) -> SwanlingTaskResult {
///     let _swanling = user.get("/foo").await?;
///
///     Ok(())
/// }
///
/// async fn other_task(user: &SwanlingUser) -> SwanlingTaskResult {
///     let _swanling = user.get("/bar").await?;
///
///     Ok(())
/// }
/// ```
A load test must contain one or more [`SwanlingTaskSet`](./swanling/struct.SwanlingTaskSet.html)s
be registered into Swanling's global state with this method for it to run.
A load test must contain one or more [ ` SwanlingTaskSet ` ] ( . / swanling / struct . SwanlingTaskSet . html ) s be registered into Swanling ' s global state with this method for it to run .
pub fn register_taskset(mut self, mut taskset: SwanlingTaskSet) -> Self {
        taskset.task_sets_index = self.task_sets.len();
        self.task_sets.push(taskset);
        self
    }
pub fn register_taskset ( mut self , mut taskset : SwanlingTaskSet ) -> Self { taskset . task_sets_index = self . task_sets . len ( ) ; self . task_sets . push ( taskset ) ; self }
A load test must contain one or more [`SwanlingTaskSet`](./swanling/struct.SwanlingTaskSet.html)s
be registered into Swanling's global state with this method for it to run.
A load test must contain one or more [ ` SwanlingTaskSet ` ] ( . / swanling / struct . SwanlingTaskSet . html ) s be registered into Swanling ' s global state with this method for it to run .
mut self
taskset
SwanlingTaskSet
example
```rust
use swanling::prelude::*.

fn main() -> Result<(), SwanlingError> {
SwanlingAttack::initialize().
.register_taskset(taskset!("ExampleTasks")
.register_task(task!(example_task))
)
.register_taskset(taskset!("OtherTasks")
.register_task(task!(other_task))
).



async fn example_task(user: &SwanlingUser) -> SwanlingTaskResult {
let _swanling = user.get("/foo").await?.



async fn other_task(user: &SwanlingUser) -> SwanlingTaskResult {
let _swanling = user.get("/bar").await?.


` ` ` rust use swanling :: prelude :: * . fn main () - > Result< () SwanlingError > { SwanlingAttack :: initialize () . . register_taskset ( taskset! ( " ExampleTasks " ) . register_task ( task! ( example_task )) ) . register_taskset ( taskset! ( " OtherTasks " ) . register_task ( task! ( other_task )) ) . async fn example_task ( user : &SwanlingUser ) - > SwanlingTaskResult { let _swanling = user . get ( " / foo " ) . await? . async fn other_task ( user : &SwanlingUser ) - > SwanlingTaskResult { let _swanling = user . get ( " / bar " ) . await? .