modbus_relay/errors/
backoff.rs1use thiserror::Error;
2
3#[derive(Error, Debug)]
4pub enum BackoffError {
5 #[error("Maximum retries exceeded")]
6 MaxRetriesExceeded,
7
8 #[error("Invalid backoff configuration: {0}")]
9 InvalidConfig(String),
10
11 #[error("Retry attempt failed: {0}")]
12 RetryFailed(String),
13}