pub struct ErrorHandler {
pub max_retries: u32,
pub retry_delay_seconds: u64,
}Expand description
Error handler with retry logic
Fields§
§max_retries: u32§retry_delay_seconds: u64Implementations§
Source§impl ErrorHandler
impl ErrorHandler
pub fn new(max_retries: u32, retry_delay_seconds: u64) -> Self
pub async fn handle_with_retry<F, T, Fut>( &self, operation: F, ) -> Result<T, AgentError>
Auto Trait Implementations§
impl Freeze for ErrorHandler
impl RefUnwindSafe for ErrorHandler
impl Send for ErrorHandler
impl Sync for ErrorHandler
impl Unpin for ErrorHandler
impl UnwindSafe for ErrorHandler
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