pub enum UnifiedError {
Session(SessionErrorKind),
Policy(PolicyErrorKind),
Network(NetworkErrorKind),
Crypto(CryptoErrorKind),
Store(StoreErrorKind),
Config(ConfigErrorKind),
RateLimited {
retry_after_secs: u64,
},
Backpressure {
active: usize,
max: usize,
},
Unauthorized {
reason: String,
},
NotFound {
resource: String,
},
Internal {
message: String,
},
}Expand description
The root error type for the entire confium-tc coordinator.
Variants§
Session(SessionErrorKind)
Policy(PolicyErrorKind)
Network(NetworkErrorKind)
Crypto(CryptoErrorKind)
Store(StoreErrorKind)
Config(ConfigErrorKind)
RateLimited
Backpressure
Fields
NotFound
Internal
Implementations§
Source§impl UnifiedError
Error code for programmatic handling.
impl UnifiedError
Error code for programmatic handling.
Source§impl UnifiedError
impl UnifiedError
Trait Implementations§
Source§impl Debug for UnifiedError
impl Debug for UnifiedError
Source§impl Display for UnifiedError
impl Display for UnifiedError
Source§impl Error for UnifiedError
impl Error for UnifiedError
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 UnifiedError
impl RefUnwindSafe for UnifiedError
impl Send for UnifiedError
impl Sync for UnifiedError
impl Unpin for UnifiedError
impl UnsafeUnpin for UnifiedError
impl UnwindSafe for UnifiedError
Blanket Implementations§
§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
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