pub struct DefaultErrorHandler { /* private fields */ }
Expand description
Default error handler implementation
Implementations§
Source§impl DefaultErrorHandler
impl DefaultErrorHandler
pub fn new() -> Self
pub fn with_max_retries(self, max_retries: u32) -> Self
pub fn with_base_delay(self, delay_ms: u64) -> Self
Trait Implementations§
Source§impl Default for DefaultErrorHandler
impl Default for DefaultErrorHandler
Source§impl ErrorHandler for DefaultErrorHandler
impl ErrorHandler for DefaultErrorHandler
fn handle_error( &self, error: &GenesisError, _context: &ErrorContext, ) -> ErrorRecovery
fn should_retry(&self, error: &GenesisError, attempt: u32) -> bool
fn get_retry_delay(&self, _error: &GenesisError, attempt: u32) -> Duration
Auto Trait Implementations§
impl Freeze for DefaultErrorHandler
impl RefUnwindSafe for DefaultErrorHandler
impl Send for DefaultErrorHandler
impl Sync for DefaultErrorHandler
impl Unpin for DefaultErrorHandler
impl UnwindSafe for DefaultErrorHandler
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