pub struct ErrorRecovery { /* private fields */ }Expand description
Error recovery system for long-horizon operations
Implementations§
Source§impl ErrorRecovery
impl ErrorRecovery
pub fn new() -> Self
Sourcepub async fn attempt_recovery(
&self,
error: &Error,
task_node: &TaskNode,
task_graph: &TaskGraph,
) -> Result<RecoveryResult, Error>
pub async fn attempt_recovery( &self, error: &Error, task_node: &TaskNode, task_graph: &TaskGraph, ) -> Result<RecoveryResult, Error>
Attempt to recover from an error
Sourcepub async fn handle_timeout(
&self,
task_node: &TaskNode,
timeout_ms: u64,
) -> Result<RecoveryResult, Error>
pub async fn handle_timeout( &self, task_node: &TaskNode, timeout_ms: u64, ) -> Result<RecoveryResult, Error>
Handle timeout scenarios
Sourcepub async fn get_recovery_statistics(&self) -> Result<RecoveryStatistics, Error>
pub async fn get_recovery_statistics(&self) -> Result<RecoveryStatistics, Error>
Get error recovery statistics
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ErrorRecovery
impl !RefUnwindSafe for ErrorRecovery
impl Send for ErrorRecovery
impl Sync for ErrorRecovery
impl Unpin for ErrorRecovery
impl !UnwindSafe for ErrorRecovery
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> 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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more