pub enum TransactionPolicyError {
InvalidRetryLimit {
min: u32,
max: u32,
value: u32,
},
InvalidTimeout {
min_ms: u64,
max_ms: u64,
value_ms: u64,
},
}Expand description
Transaction policy construction that failed validation.
Variants§
InvalidRetryLimit
Retry budget must be within safe operating range.
Fields
InvalidTimeout
Timeout must be in the configured policy window.
Trait Implementations§
Source§impl Clone for TransactionPolicyError
impl Clone for TransactionPolicyError
impl Copy for TransactionPolicyError
Source§impl Debug for TransactionPolicyError
impl Debug for TransactionPolicyError
Source§impl Display for TransactionPolicyError
impl Display for TransactionPolicyError
impl Eq for TransactionPolicyError
Source§impl Error for TransactionPolicyError
impl Error for TransactionPolicyError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for TransactionPolicyError
impl PartialEq for TransactionPolicyError
impl StructuralPartialEq for TransactionPolicyError
Auto Trait Implementations§
impl Freeze for TransactionPolicyError
impl RefUnwindSafe for TransactionPolicyError
impl Send for TransactionPolicyError
impl Sync for TransactionPolicyError
impl Unpin for TransactionPolicyError
impl UnsafeUnpin for TransactionPolicyError
impl UnwindSafe for TransactionPolicyError
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