Enum crius::error::CriusError
source · pub enum CriusError {
ExecutionRejected,
InvalidConfig,
}
Expand description
This error type describes the possible failures that can occur while attempting to run a circuit breaker command.
Variants
ExecutionRejected
Error variant returned in case of an open breaker.
InvalidConfig
Error variant returned in case of invalid configuration (e.g. parameters that cause duration calculations to overflow).
Trait Implementations
sourceimpl Debug for CriusError
impl Debug for CriusError
sourceimpl Display for CriusError
impl Display for CriusError
sourceimpl Error for CriusError
impl Error for CriusError
sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
Auto Trait Implementations
impl RefUnwindSafe for CriusError
impl Send for CriusError
impl Sync for CriusError
impl Unpin for CriusError
impl UnwindSafe for CriusError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more