Enum openstack_cli::error::OpenStackCliError
source · #[non_exhaustive]pub enum OpenStackCliError {
Show 16 variants
SerializeJson {
source: Error,
},
OpenStackSDK {
source: OpenStackError,
},
OpenStackApi {
source: ApiError<RestError>,
},
ConfigError {
source: ConfigError,
},
NoSubcommands,
ResourceNotFound,
IdNotUnique,
IO {
source: Error,
},
Reqwest {
source: Error,
},
Clap {
source: Error,
},
Idinticatif {
source: TemplateError,
},
EndpointBuild(String),
ConnectionNotFound(String),
InvalidHeaderName {
source: InvalidHeaderName,
},
InvalidHeaderValue {
source: InvalidHeaderValue,
},
Other(Error),
}Expand description
CLI error type
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.
SerializeJson
Json serialization error
OpenStackSDK
SDK error
Fields
§
source: OpenStackErrorThe source of the error.
OpenStackApi
OpenStack API error
ConfigError
Configuration error
Fields
§
source: ConfigErrorThe source of the error.
NoSubcommands
No subcommands
ResourceNotFound
Resource is not found
IdNotUnique
Resource identifier is not unique
IO
IO error
Reqwest
Reqwest library error
Clap
Clap library error
Idinticatif
Indicativ library error
Fields
§
source: TemplateErrorThe source of the error.
EndpointBuild(String)
Endpoint builder error
ConnectionNotFound(String)
Connection error
InvalidHeaderName
Invalid header name
Fields
§
source: InvalidHeaderNameThe source of the error.
InvalidHeaderValue
Invalid header value
Fields
§
source: InvalidHeaderValueThe source of the error.
Other(Error)
Others
Trait Implementations§
source§impl Debug for OpenStackCliError
impl Debug for OpenStackCliError
source§impl Display for OpenStackCliError
impl Display for OpenStackCliError
source§impl Error for OpenStackCliError
impl Error for OpenStackCliError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<ConfigError> for OpenStackCliError
impl From<ConfigError> for OpenStackCliError
source§fn from(source: ConfigError) -> Self
fn from(source: ConfigError) -> Self
Converts to this type from the input type.
source§impl From<Error> for OpenStackCliError
impl From<Error> for OpenStackCliError
source§impl From<Error> for OpenStackCliError
impl From<Error> for OpenStackCliError
source§impl From<Error> for OpenStackCliError
impl From<Error> for OpenStackCliError
source§impl From<Error> for OpenStackCliError
impl From<Error> for OpenStackCliError
source§impl From<Error> for OpenStackCliError
impl From<Error> for OpenStackCliError
source§impl From<InvalidHeaderName> for OpenStackCliError
impl From<InvalidHeaderName> for OpenStackCliError
source§fn from(source: InvalidHeaderName) -> Self
fn from(source: InvalidHeaderName) -> Self
Converts to this type from the input type.
source§impl From<InvalidHeaderValue> for OpenStackCliError
impl From<InvalidHeaderValue> for OpenStackCliError
source§fn from(source: InvalidHeaderValue) -> Self
fn from(source: InvalidHeaderValue) -> Self
Converts to this type from the input type.
source§impl From<OpenStackError> for OpenStackCliError
impl From<OpenStackError> for OpenStackCliError
source§fn from(source: OpenStackError) -> Self
fn from(source: OpenStackError) -> Self
Converts to this type from the input type.
source§impl From<TemplateError> for OpenStackCliError
impl From<TemplateError> for OpenStackCliError
source§fn from(source: TemplateError) -> Self
fn from(source: TemplateError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for OpenStackCliError
impl !RefUnwindSafe for OpenStackCliError
impl Send for OpenStackCliError
impl Sync for OpenStackCliError
impl Unpin for OpenStackCliError
impl !UnwindSafe for OpenStackCliError
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> Cell for Twhere
T: Display,
impl<T> Cell for Twhere
T: Display,
source§fn cell(self) -> CellStruct
fn cell(self) -> CellStruct
Converts raw type to cell of a table
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 more