Enum ErrorEffect
Source pub enum ErrorEffect {
Domain(Box<DomainErrorContext>),
Operational(OperationalError),
}Expand description
An error effect that can be persisted and replayed.
This distinguishes between:
- Domain errors: Business logic errors that must be tracked
- Operational errors: Infrastructure errors that can be sampled/discarded
Variants§
Domain(Box<DomainErrorContext>)
Domain-level error (must persist, replay, affect downstream)
Operational(OperationalError)
Operational error (telemetry only, can sample/discard)
Implementations§
Trait Implementations§
Source§impl Clone for ErrorEffect
impl Clone for ErrorEffect
Source§fn clone(&self) -> ErrorEffect
fn clone(&self) -> ErrorEffect
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 ErrorEffect
impl Debug for ErrorEffect
Source§impl<'de> Deserialize<'de> for ErrorEffect
impl<'de> Deserialize<'de> for ErrorEffect
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ErrorEffect, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ErrorEffect, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ErrorEffect
impl Display for ErrorEffect
Source§impl Error for ErrorEffect
impl Error for ErrorEffect
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 ErrorClassifiable for ErrorEffect
impl ErrorClassifiable for ErrorEffect
Source§fn is_retryable(&self) -> bool
fn is_retryable(&self) -> bool
Whether this error can be retried automatically.
Source§fn requires_user_intervention(&self) -> bool
fn requires_user_intervention(&self) -> bool
Whether this error requires a human to intervene.
Source§fn retry_after_ms(&self) -> Option<u64>
fn retry_after_ms(&self) -> Option<u64>
Suggested retry delay in milliseconds (None = use default backoff).
Source§fn max_retries(&self) -> u32
fn max_retries(&self) -> u32
Maximum number of retries before giving up.
Source§impl PartialEq for ErrorEffect
impl PartialEq for ErrorEffect
Source§impl Serialize for ErrorEffect
impl Serialize for ErrorEffect
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl ToSchema for ErrorEffect
impl ToSchema for ErrorEffect
impl StructuralPartialEq for ErrorEffect
Auto Trait Implementations§
impl Freeze for ErrorEffect
impl RefUnwindSafe for ErrorEffect
impl Send for ErrorEffect
impl Sync for ErrorEffect
impl Unpin for ErrorEffect
impl UnwindSafe for ErrorEffect
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.