pub enum AddrReason {
Brief(String),
Unified(UnifiedReason),
OperationTimeoutExceeded {
timeout: Duration,
attempts: u32,
},
TotalTimeoutExceeded {
total_timeout: Duration,
elapsed: Duration,
},
RetryExhausted {
attempts: u32,
last_error: String,
},
}Variants§
Implementations§
Source§impl AddrReason
impl AddrReason
pub fn core_conf() -> Self
pub fn feature_conf() -> Self
pub fn dynamic_conf() -> Self
pub fn validation_error() -> Self
pub fn business_error() -> Self
pub fn rule_error() -> Self
pub fn not_found_error() -> Self
pub fn permission_error() -> Self
pub fn data_error() -> Self
pub fn system_error() -> Self
pub fn network_error() -> Self
pub fn resource_error() -> Self
pub fn timeout_error() -> Self
pub fn external_error() -> Self
pub fn logic_error() -> Self
Trait Implementations§
Source§impl Clone for AddrReason
impl Clone for AddrReason
Source§fn clone(&self) -> AddrReason
fn clone(&self) -> AddrReason
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AddrReason
impl Debug for AddrReason
Source§impl Display for AddrReason
impl Display for AddrReason
impl DomainReason for AddrReason
Source§impl ErrorCode for AddrReason
impl ErrorCode for AddrReason
fn error_code(&self) -> i32
Source§impl ErrorIdentityProvider for AddrReason
impl ErrorIdentityProvider for AddrReason
fn stable_code(&self) -> &'static str
fn error_category(&self) -> ErrorCategory
Source§impl From<String> for AddrReason
impl From<String> for AddrReason
Source§impl From<UnifiedReason> for AddrReason
impl From<UnifiedReason> for AddrReason
Source§fn from(value: UnifiedReason) -> Self
fn from(value: UnifiedReason) -> Self
Converts to this type from the input type.
Source§impl PartialEq for AddrReason
impl PartialEq for AddrReason
Source§impl Serialize for AddrReason
impl Serialize for AddrReason
impl StructuralPartialEq for AddrReason
Auto Trait Implementations§
impl Freeze for AddrReason
impl RefUnwindSafe for AddrReason
impl Send for AddrReason
impl Sync for AddrReason
impl Unpin for AddrReason
impl UnsafeUnpin for AddrReason
impl UnwindSafe for AddrReason
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> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
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.