pub enum ReliabilityError {
ErrorRecovery(RecoveryError),
DataIntegrity(IntegrityError),
Monitoring(String),
HealthCheck(HealthError),
CircuitBreaker(BreakerError),
BackupRestore(BackupError),
Initialization(String),
Shutdown(String),
}
Expand description
Error types for reliability operations
Variants§
ErrorRecovery(RecoveryError)
Error recovery failed
DataIntegrity(IntegrityError)
Data integrity check failed
Monitoring(String)
Monitoring system error
HealthCheck(HealthError)
Health check failed
CircuitBreaker(BreakerError)
Circuit breaker error
BackupRestore(BackupError)
Backup/restore error
Initialization(String)
Initialization failed
Shutdown(String)
Shutdown failed
Trait Implementations§
Source§impl Clone for ReliabilityError
impl Clone for ReliabilityError
Source§fn clone(&self) -> ReliabilityError
fn clone(&self) -> ReliabilityError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ReliabilityError
impl Debug for ReliabilityError
Source§impl Display for ReliabilityError
impl Display for ReliabilityError
Source§impl Error for ReliabilityError
impl Error for ReliabilityError
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<BackupError> for ReliabilityError
impl From<BackupError> for ReliabilityError
Source§fn from(e: BackupError) -> Self
fn from(e: BackupError) -> Self
Converts to this type from the input type.
Source§impl From<BreakerError> for ReliabilityError
impl From<BreakerError> for ReliabilityError
Source§fn from(e: BreakerError) -> Self
fn from(e: BreakerError) -> Self
Converts to this type from the input type.
Source§impl From<HealthError> for ReliabilityError
impl From<HealthError> for ReliabilityError
Source§fn from(e: HealthError) -> Self
fn from(e: HealthError) -> Self
Converts to this type from the input type.
Source§impl From<IntegrityError> for ReliabilityError
impl From<IntegrityError> for ReliabilityError
Source§fn from(e: IntegrityError) -> Self
fn from(e: IntegrityError) -> Self
Converts to this type from the input type.
Source§impl From<RecoveryError> for ReliabilityError
impl From<RecoveryError> for ReliabilityError
Source§fn from(e: RecoveryError) -> Self
fn from(e: RecoveryError) -> Self
Converts to this type from the input type.
Source§impl From<String> for ReliabilityError
impl From<String> for ReliabilityError
Source§impl PartialEq for ReliabilityError
impl PartialEq for ReliabilityError
impl StructuralPartialEq for ReliabilityError
Auto Trait Implementations§
impl Freeze for ReliabilityError
impl RefUnwindSafe for ReliabilityError
impl Send for ReliabilityError
impl Sync for ReliabilityError
impl Unpin for ReliabilityError
impl UnwindSafe for ReliabilityError
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> RetryableError for Twhere
T: Error,
impl<T> RetryableError for Twhere
T: Error,
Source§impl<T> SerializableKey for T
impl<T> SerializableKey for T
Source§impl<T> StorageAccess<T> for T
impl<T> StorageAccess<T> for T
Source§fn as_borrowed(&self) -> &T
fn as_borrowed(&self) -> &T
Borrows the value.
Source§fn into_taken(self) -> T
fn into_taken(self) -> T
Takes the value.
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.