[][src]Struct goose::goose::GooseTaskSet

pub struct GooseTaskSet {
    pub name: String,
    pub task_sets_index: usize,
    pub weight: usize,
    pub min_wait: usize,
    pub max_wait: usize,
    pub tasks: Vec<GooseTask>,
    pub weighted_tasks: Vec<Vec<usize>>,
    pub weighted_on_start_tasks: Vec<Vec<usize>>,
    pub weighted_on_stop_tasks: Vec<Vec<usize>>,
    pub host: Option<String>,
}

An individual task set

Fields

name: Stringtask_sets_index: usizeweight: usizemin_wait: usizemax_wait: usizetasks: Vec<GooseTask>weighted_tasks: Vec<Vec<usize>>weighted_on_start_tasks: Vec<Vec<usize>>weighted_on_stop_tasks: Vec<Vec<usize>>host: Option<String>

Methods

impl GooseTaskSet[src]

pub fn new(name: &str) -> Self[src]

pub fn register_task(&mut self, task: GooseTask)[src]

pub fn set_weight(self, weight: usize) -> Self[src]

pub fn set_host(self, host: &str) -> Self[src]

pub fn set_wait_time(self, min_wait: usize, max_wait: usize) -> Self[src]

Trait Implementations

impl Clone for GooseTaskSet[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,