[−][src]Enum goose::goose::GooseTaskError
Definition of all errors Goose Tasks can return.
Variants
Reqwest(Error)
Contains a reqwest::Error.
Url(ParseError)
Contains a url::ParseError.
The request failed. The GooseRawRequest
that failed can be found in
.raw_request
.
Fields of RequestFailed
raw_request: GooseRawRequest
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.
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>
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>>
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]
fn source(&self) -> Option<&(dyn Error + 'static)>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn description(&self) -> &str
1.0.0[src]
fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl From<Error> for GooseTaskError
[src]
Auto-convert Reqwest errors.
fn from(err: Error) -> GooseTaskError
[src]
impl From<ParseError> for GooseTaskError
[src]
Auto-convert Url errors.
fn from(err: ParseError) -> GooseTaskError
[src]
impl From<SendError<GooseMetric>> for GooseTaskError
[src]
Attempt to send metrics to the parent thread failed.
fn from(source: SendError<GooseMetric>) -> GooseTaskError
[src]
impl From<SendError<Option<GooseDebug>>> for GooseTaskError
[src]
Attempt to send logs to the logger thread failed.
fn from(source: SendError<Option<GooseDebug>>) -> GooseTaskError
[src]
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
.
fn from(source: SendError<bool>) -> GooseTaskError
[src]
Auto Trait Implementations
impl !RefUnwindSafe for GooseTaskError
impl Send for GooseTaskError
impl Sync for GooseTaskError
impl Unpin for GooseTaskError
impl !UnwindSafe for GooseTaskError
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,