pub enum CloudError {
Show 34 variants
ClientInit(String),
ProviderNotEnabled(String),
SecretFetch {
name: String,
error: String,
},
SecretCreate {
name: String,
error: String,
},
SecretUpdate {
name: String,
error: String,
},
SecretDelete {
name: String,
error: String,
},
SecretFormat {
name: String,
reason: String,
},
SecretList(String),
SecretNotFound(String),
StorageFetch {
key: String,
error: String,
},
StorageRead {
key: String,
error: String,
},
StoragePut {
key: String,
error: String,
},
StorageDelete {
key: String,
error: String,
},
StorageList {
prefix: String,
error: String,
},
StorageObjectNotFound(String),
MetricsExport(String),
LogWrite(String),
LogExport(String),
TraceSpanCreate(String),
TraceExport(String),
AuthFailed(String),
AuthorizationFailed(String),
InvalidCredentials(String),
ConfigError(String),
MissingConfig(String),
InvalidConfig {
key: String,
reason: String,
},
Network(String),
Connection(String),
Timeout(String),
Authentication(String),
Serialization(String),
Deserialization(String),
OperationFailed(String),
Internal(String),
}Expand description
Unified cloud error type for all cloud operations.
Variants§
ClientInit(String)
ProviderNotEnabled(String)
SecretFetch
SecretCreate
SecretUpdate
SecretDelete
SecretFormat
SecretList(String)
SecretNotFound(String)
StorageFetch
StorageRead
StoragePut
StorageDelete
StorageList
StorageObjectNotFound(String)
MetricsExport(String)
LogWrite(String)
LogExport(String)
TraceSpanCreate(String)
TraceExport(String)
AuthFailed(String)
AuthorizationFailed(String)
InvalidCredentials(String)
ConfigError(String)
MissingConfig(String)
InvalidConfig
Network(String)
Connection(String)
Timeout(String)
Authentication(String)
Serialization(String)
Deserialization(String)
OperationFailed(String)
Internal(String)
Implementations§
Source§impl CloudError
impl CloudError
Sourcepub fn secret_fetch(
name: impl Into<String>,
error: impl Into<String>,
) -> CloudError
pub fn secret_fetch( name: impl Into<String>, error: impl Into<String>, ) -> CloudError
Creates a new SecretFetch error.
Sourcepub fn secret_create(
name: impl Into<String>,
error: impl Into<String>,
) -> CloudError
pub fn secret_create( name: impl Into<String>, error: impl Into<String>, ) -> CloudError
Creates a new SecretCreate error.
Sourcepub fn secret_update(
name: impl Into<String>,
error: impl Into<String>,
) -> CloudError
pub fn secret_update( name: impl Into<String>, error: impl Into<String>, ) -> CloudError
Creates a new SecretUpdate error.
Sourcepub fn storage_fetch(
key: impl Into<String>,
error: impl Into<String>,
) -> CloudError
pub fn storage_fetch( key: impl Into<String>, error: impl Into<String>, ) -> CloudError
Creates a new StorageFetch error.
Sourcepub fn storage_put(
key: impl Into<String>,
error: impl Into<String>,
) -> CloudError
pub fn storage_put( key: impl Into<String>, error: impl Into<String>, ) -> CloudError
Creates a new StoragePut error.
Sourcepub fn secret_delete(
name: impl Into<String>,
error: impl Into<String>,
) -> CloudError
pub fn secret_delete( name: impl Into<String>, error: impl Into<String>, ) -> CloudError
Creates a new SecretDelete error.
Sourcepub fn storage_delete(
key: impl Into<String>,
error: impl Into<String>,
) -> CloudError
pub fn storage_delete( key: impl Into<String>, error: impl Into<String>, ) -> CloudError
Creates a new StorageDelete error.
Sourcepub fn storage_read(
key: impl Into<String>,
error: impl Into<String>,
) -> CloudError
pub fn storage_read( key: impl Into<String>, error: impl Into<String>, ) -> CloudError
Creates a new StorageRead error.
Sourcepub fn storage_get(
key: impl Into<String>,
error: impl Into<String>,
) -> CloudError
pub fn storage_get( key: impl Into<String>, error: impl Into<String>, ) -> CloudError
Alias for storage_fetch (for compatibility).
Sourcepub fn storage_list(
prefix: impl Into<String>,
error: impl Into<String>,
) -> CloudError
pub fn storage_list( prefix: impl Into<String>, error: impl Into<String>, ) -> CloudError
Creates a new StorageList error.
Trait Implementations§
Source§impl Debug for CloudError
impl Debug for CloudError
Source§impl Display for CloudError
impl Display for CloudError
Source§impl Error for CloudError
impl Error for CloudError
1.30.0 · 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<Error> for CloudError
impl From<Error> for CloudError
Source§fn from(err: Error) -> CloudError
fn from(err: Error) -> CloudError
Converts to this type from the input type.
Source§impl From<Error> for CloudError
impl From<Error> for CloudError
Source§fn from(err: Error) -> CloudError
fn from(err: Error) -> CloudError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CloudError
impl RefUnwindSafe for CloudError
impl Send for CloudError
impl Sync for CloudError
impl Unpin for CloudError
impl UnwindSafe for CloudError
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 moreCreates a shared type from an unshared type.