pub enum ToolkitError {
CircuitOpen {
retry_after: Duration,
},
BulkheadClosed,
RetryExhausted {
attempts: u32,
},
}Expand description
Errors that can be returned by reliability primitives themselves (as opposed to errors from the wrapped operation).
Variants§
CircuitOpen
The circuit breaker is currently open and rejected the call without invoking it.
BulkheadClosed
The bulkhead has been closed and is no longer accepting permits.
RetryExhausted
Retry exhausted its attempt budget without a success.
Trait Implementations§
Source§impl Debug for ToolkitError
impl Debug for ToolkitError
Source§impl Display for ToolkitError
impl Display for ToolkitError
Source§impl Error for ToolkitError
impl Error for ToolkitError
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()
Auto Trait Implementations§
impl Freeze for ToolkitError
impl RefUnwindSafe for ToolkitError
impl Send for ToolkitError
impl Sync for ToolkitError
impl Unpin for ToolkitError
impl UnsafeUnpin for ToolkitError
impl UnwindSafe for ToolkitError
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