#[non_exhaustive]pub enum OpenStackError {
Show 18 variants
UrlParse {
source: ParseError,
},
NoAuth,
AuthError {
source: AuthError,
},
Communication {
source: Error,
},
Http {
status: StatusCode,
},
NoResponse {},
DataType {
source: Error,
typename: &'static str,
},
Api {
source: ApiError<RestError>,
},
Catalog {
source: CatalogError,
},
ConfigError {
source: ConfigError,
},
Dialoguer {
source: Error,
},
Discovery {
service: String,
url: String,
msg: String,
},
NonInteractiveMode {
msg: String,
},
Json {
source: Error,
},
IO {
source: Error,
},
IOWithPath {
source: Error,
path: String,
},
InvalidUri {
source: InvalidUri,
},
EndpointBuild(String),
}Expand description
OpenStack Client error
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
UrlParse
URL parse error
Fields
§
source: ParseErrorThe source of the error.
NoAuth
Authentication error
AuthError
Authentication error
Communication
API Communication error
Http
HTTP error
Fields
§
status: StatusCodeNoResponse
No response
DataType
Json deserialization error
Fields
Api
API error
Catalog
Service catalog error
Fields
§
source: CatalogErrorThe source of the error. error source
ConfigError
Fields
§
source: ConfigErrorThe source of the error.
Dialoguer
Dialoguer error
Discovery
Service version discovery error
NonInteractiveMode
Interactive mode required
Json
JSON deserialization from OpenStack failed.
IO
General IO error.
IOWithPath
IO error with associated with path processing.
InvalidUri
Invalid URL.
Fields
§
source: InvalidUriThe source of the error.
EndpointBuild(String)
Endpoint builder error
Implementations§
Source§impl OpenStackError
impl OpenStackError
pub fn http(status: StatusCode) -> Self
pub fn no_response() -> Self
pub fn data_type<T>(source: Error) -> Self
pub fn catalog(source: CatalogError) -> Self
Trait Implementations§
Source§impl Debug for OpenStackError
impl Debug for OpenStackError
Source§impl Display for OpenStackError
impl Display for OpenStackError
Source§impl Error for OpenStackError
impl Error for OpenStackError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<AuthError> for OpenStackError
impl From<AuthError> for OpenStackError
Source§impl From<AuthTokenError> for OpenStackError
impl From<AuthTokenError> for OpenStackError
Source§fn from(source: AuthTokenError) -> Self
fn from(source: AuthTokenError) -> Self
Converts to this type from the input type.
Source§impl From<AuthTokenScopeError> for OpenStackError
impl From<AuthTokenScopeError> for OpenStackError
Source§fn from(source: AuthTokenScopeError) -> Self
fn from(source: AuthTokenScopeError) -> Self
Converts to this type from the input type.
Source§impl From<CatalogError> for OpenStackError
impl From<CatalogError> for OpenStackError
Source§fn from(source: CatalogError) -> Self
fn from(source: CatalogError) -> Self
Converts to this type from the input type.
Source§impl From<ConfigError> for OpenStackError
impl From<ConfigError> for OpenStackError
Source§fn from(source: ConfigError) -> Self
fn from(source: ConfigError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for OpenStackError
impl From<Error> for OpenStackError
Source§impl From<Error> for OpenStackError
impl From<Error> for OpenStackError
Source§impl From<Error> for OpenStackError
impl From<Error> for OpenStackError
Source§impl From<Error> for OpenStackError
impl From<Error> for OpenStackError
Source§impl From<InvalidUri> for OpenStackError
impl From<InvalidUri> for OpenStackError
Source§fn from(source: InvalidUri) -> Self
fn from(source: InvalidUri) -> Self
Converts to this type from the input type.
Source§impl From<OidcAccessTokenError> for OpenStackError
impl From<OidcAccessTokenError> for OpenStackError
Source§fn from(source: OidcAccessTokenError) -> Self
fn from(source: OidcAccessTokenError) -> Self
Converts to this type from the input type.
Source§impl From<ParseError> for OpenStackError
impl From<ParseError> for OpenStackError
Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
Source§impl From<WebSsoError> for OpenStackError
impl From<WebSsoError> for OpenStackError
Source§fn from(source: WebSsoError) -> Self
fn from(source: WebSsoError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for OpenStackError
impl !RefUnwindSafe for OpenStackError
impl Send for OpenStackError
impl Sync for OpenStackError
impl Unpin for OpenStackError
impl !UnwindSafe for OpenStackError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.