Enum openstack::ApiError
[−]
[src]
pub enum ApiError {
InsufficientCredentials(&'static str),
EndpointNotFound(String),
Unauthorized,
HttpError(Response),
ProtocolError(HttpClientError),
InvalidJson(JsonError),
}Error from an OpenStack API call.
Variants
InsufficientCredentials(&'static str)Insufficient credentials passed to make authentication request.
EndpointNotFound(String)Requested service endpoint was not found.
Authentication rejected (invalid credentials or token).
HttpError(Response)Generic HTTP error (not covered by EndpointNotFound and Unauthorized).
ProtocolError(HttpClientError)Protocol-level error reported by underlying HTTP library.
InvalidJson(JsonError)JSON parsing failed.
Trait Implementations
impl Debug for ApiError[src]
impl Display for ApiError[src]
impl Error for ApiError[src]
fn description(&self) -> &str
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
The lower-level cause of this error, if any. Read more
impl From<HttpClientError> for ApiError[src]
fn from(value: HttpClientError) -> ApiError
Performs the conversion.