Enum openstack::Error
[−]
[src]
pub enum Error { EndpointNotFound(String), InvalidInput(String), InvalidUrl(UrlError), HttpError(StatusCode, Response), ProtocolError(HttpClientError), InvalidResponse(String), InvalidApiVersion { value: String, message: String, }, UnsupportedApiVersion { requested: ApiVersionRequest, minimum: Option<ApiVersion>, maximum: Option<ApiVersion>, }, }
Error from an OpenStack call.
Variants
EndpointNotFound(String)
Requested service endpoint was not found.
Contains the failed endpoint name.
InvalidInput(String)
Invalid value passed to one of paremeters.
Contains the error message.
InvalidUrl(UrlError)
Invalid URL.
HttpError(StatusCode, Response)
Generic HTTP error.
ProtocolError(HttpClientError)
Protocol-level error reported by underlying HTTP library.
InvalidResponse(String)
Response received from the server is malformed.
Contains the error message.
InvalidApiVersion
Malformed API version.
Fields of InvalidApiVersion
value: String | |
message: String |
UnsupportedApiVersion
Unsupported API version.
Fields of UnsupportedApiVersion
requested: ApiVersionRequest | |
minimum: Option<ApiVersion> | |
maximum: Option<ApiVersion> |
Trait Implementations
impl Debug for Error
[src]
impl Display for Error
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Error for Error
[src]
fn description(&self) -> &str
[src]
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
[src]
The lower-level cause of this error, if any. Read more
impl From<HttpClientError> for Error
[src]
fn from(value: HttpClientError) -> Error
[src]
Performs the conversion.