pub struct ErrorContext {
pub error: SchedulerError,
pub timestamp: DateTime<Utc>,
pub retry_delay: Option<Duration>,
}Expand description
Error context provides additional information about an error
This struct contains metadata about an error occurrence, including retry delays and context-specific information.
Fields§
§error: SchedulerError§timestamp: DateTime<Utc>§retry_delay: Option<Duration>Implementations§
Source§impl ErrorContext
impl ErrorContext
Sourcepub fn new(error: SchedulerError) -> Self
pub fn new(error: SchedulerError) -> Self
Sourcepub fn with_retry_delay(self, delay: Duration) -> Self
pub fn with_retry_delay(self, delay: Duration) -> Self
Trait Implementations§
Source§impl Clone for ErrorContext
impl Clone for ErrorContext
Source§fn clone(&self) -> ErrorContext
fn clone(&self) -> ErrorContext
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 moreAuto Trait Implementations§
impl Freeze for ErrorContext
impl RefUnwindSafe for ErrorContext
impl Send for ErrorContext
impl Sync for ErrorContext
impl Unpin for ErrorContext
impl UnwindSafe for ErrorContext
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