Enum openstack_sdk::catalog::CatalogError
source · #[non_exhaustive]pub enum CatalogError {
ApiVersion {
source: ApiVersionError,
},
Regex {
source: Error,
},
UrlCannotBeBase(String),
UrlParse {
source: ParseError,
url: String,
},
UrlParseError {
source: ParseError,
},
UrlScheme(String),
ServiceAuthority {
source: ServiceAuthorityError,
},
InvalidDiscoveryDocument,
ServiceNotConfigured(String),
VersionSelfLinkMissing {
id: String,
},
VersionUnsupported {
ver: ApiVersion,
},
}Expand description
Service catalog 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.
ApiVersion
Fields
§
source: ApiVersionErrorRegex
UrlCannotBeBase(String)
Invalid URL
UrlParse
Invalid URL
UrlParseError
A transparent url::ParseError error for unwrapped cases
Fields
§
source: ParseErrorUrlScheme(String)
Invalid URL scheme
ServiceAuthority
Fields
§
source: ServiceAuthorityErrorInvalidDiscoveryDocument
ServiceNotConfigured(String)
VersionSelfLinkMissing
VersionUnsupported
Fields
§
ver: ApiVersionImplementations§
source§impl CatalogError
impl CatalogError
pub fn url_parse<S: AsRef<str>>(source: ParseError, url: S) -> Self
pub fn cannot_be_base(url: &Url) -> Self
Trait Implementations§
source§impl Debug for CatalogError
impl Debug for CatalogError
source§impl Display for CatalogError
impl Display for CatalogError
source§impl Error for CatalogError
impl Error for CatalogError
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<ApiVersionError> for CatalogError
impl From<ApiVersionError> for CatalogError
source§fn from(source: ApiVersionError) -> Self
fn from(source: ApiVersionError) -> Self
Converts to this type from the input type.
source§impl<E> From<CatalogError> for ApiError<E>
impl<E> From<CatalogError> for ApiError<E>
source§fn from(source: CatalogError) -> Self
fn from(source: CatalogError) -> 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<Error> for CatalogError
impl From<Error> for CatalogError
source§impl From<ParseError> for CatalogError
impl From<ParseError> for CatalogError
source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CatalogError
impl !RefUnwindSafe for CatalogError
impl Send for CatalogError
impl Sync for CatalogError
impl Unpin for CatalogError
impl !UnwindSafe for CatalogError
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 more