[][src]Enum goose::GooseError

pub enum GooseError {
    Io(Error),
    Reqwest(Error),
    FeatureNotEnabled {
        feature: String,
        detail: String,
    },
    InvalidHost {
        host: String,
        detail: String,
        parse_error: ParseError,
    },
    InvalidOption {
        option: String,
        value: String,
        detail: String,
    },
    InvalidWaitTime {
        min_wait: usize,
        max_wait: usize,
        detail: String,
    },
    InvalidWeight {
        weight: usize,
        detail: String,
    },
    NoTaskSets {
        detail: String,
    },
}

Definition of all errors a GooseAttack can return.

Variants

Io(Error)

Contains an io::Error.

Reqwest(Error)

Contains a reqwest::Error.

FeatureNotEnabled

Failed attempt to use code that requires a compile-time feature be enabled. The missing feature is named in .feature. An optional explanation may be found in .detail.

Fields of FeatureNotEnabled

feature: Stringdetail: String
InvalidHost

Failed to parse hostname. The invalid hostname that caused this error is found in .host. An optional explanation may be found in .detail. The lower level url::ParseError is contained in .parse_error.

Fields of InvalidHost

host: Stringdetail: Stringparse_error: ParseError
InvalidOption

Invalid option or value specified, may only be invalid in context. The invalid option is found in .option, while the invalid value is found in .value. An optional explanation providing context may be found in .detail.

Fields of InvalidOption

option: Stringvalue: Stringdetail: String
InvalidWaitTime

Invalid wait time specified. The minimum wait time and maximum wait time are found in .min_wait and .max_wait respectively. An optional explanation providing context may be found in .detail.

Fields of InvalidWaitTime

min_wait: usizemax_wait: usizedetail: String
InvalidWeight

Invalid weight specified. The invalid weight value is found in .weight. An optional

Fields of InvalidWeight

weight: usizedetail: String
NoTaskSets

GooseAttack has no GooseTaskSet defined. An optional explanation may be found in .detail.

Fields of NoTaskSets

detail: String

Trait Implementations

impl Debug for GooseError[src]

impl Display for GooseError[src]

impl Error for GooseError[src]

impl From<Error> for GooseError[src]

Auto-convert Reqwest errors.

impl From<Error> for GooseError[src]

Auto-convert IO errors.

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> ToString for T where
    T: Display + ?Sized
[src]

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>,