Struct tc_error::TCError

source ·
pub struct TCError { /* private fields */ }
Expand description

A general error description.

Implementations§

Returns a new error with the given code and message.

Reconstruct a TCError from its ErrorType and data.

Error indicating that the an upstream server send an invalid response.

Error indicating that the request is badly-constructed or nonsensical.

Error indicating that the request depends on a resource which is exclusively locked by another request.

Error indicating that the request actor’s credentials do not authorize access to some request dependencies.

A truly unexpected error, for which the calling application cannot define any specific handling behavior.

Error indicating that the requested resource exists but does not support the request method.

Error indicating that the requested resource does not exist at the specified location.

Error indicating that a required feature is not yet implemented.

Error indicating that the request failed to complete in the allotted time.

Error indicating that the user’s credentials are missing or nonsensical.

Error indicating that this host is currently overloaded

Error indicating that the request is badly-constructed or nonsensical.

Trait Implementations§

Formats the value using the given formatter. Read more
Formats the value using the given formatter. Read more
The lower-level source of this error, if any. Read more
👎Deprecated since 1.42.0: use the Display impl or to_string()
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
Converts to this type from the input type.
Converts to this type from the input type.
Take ownership of this value and serialize it into the given encoder.
Serialize this value into the given encoder.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

🔬This is a nightly-only experimental API. (provide_any)
Data providers should implement this method to provide all values they are able to provide by using demand. Read more
Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.