[][src]Enum goose::goose::GooseTaskError

pub enum GooseTaskError {
    Reqwest(Error),
    Url(ParseError),
    RequestFailed {
        raw_request: GooseRawRequest,
    },
    RequestCanceled {
        source: SendError<bool>,
    },
    MetricsFailed {
        source: SendError<GooseMetric>,
    },
    LoggerFailed {
        source: SendError<Option<GooseDebug>>,
    },
    InvalidMethod {
        method: Method,
    },
}

Definition of all errors Goose Tasks can return.

Variants

Reqwest(Error)

Contains a reqwest::Error.

Contains a url::ParseError.

RequestFailed

The request failed. The GooseRawRequest that failed can be found in .raw_request.

Fields of RequestFailed

raw_request: GooseRawRequest
RequestCanceled

The request was canceled (this happens when the throttle is enabled and the load test finished). The mpsc SendError can be found in .source. A GooseRawRequest has not yet been constructed, so is not available in this error.

Fields of RequestCanceled

source: SendError<bool>
MetricsFailed

There was an error sending the metrics for a request to the parent thread. The GooseRawRequest that was not recorded can be extracted from the error chain, available inside .source.

Fields of MetricsFailed

source: SendError<GooseMetric>
LoggerFailed

Attempt to send debug detail to logger failed. There was an error sending debug information to the logger thread. The GooseDebug that was not logged can be extracted from the error chain, available inside .source.

Fields of LoggerFailed

source: SendError<Option<GooseDebug>>
InvalidMethod

Attempted an unrecognized HTTP request method. The unrecognized method is available in .method.

Fields of InvalidMethod

method: Method

Trait Implementations

impl Debug for GooseTaskError[src]

impl Display for GooseTaskError[src]

impl Error for GooseTaskError[src]

impl From<Error> for GooseTaskError[src]

Auto-convert Reqwest errors.

impl From<ParseError> for GooseTaskError[src]

Auto-convert Url errors.

impl From<SendError<GooseMetric>> for GooseTaskError[src]

Attempt to send metrics to the parent thread failed.

impl From<SendError<Option<GooseDebug>>> for GooseTaskError[src]

Attempt to send logs to the logger thread failed.

impl From<SendError<bool>> for GooseTaskError[src]

When the throttle is enabled and the load test ends, the throttle channel is shut down. This causes mpsc SendError, which gets automatically converted to RequestCanceled.

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