Skip to content

Commit 0884f8b

Browse files
committed
RetryDecision: Add #[non_exhaustive] attribute
We may want to extend this enum in the future.
1 parent 6e2e8ae commit 0884f8b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scylla/src/policies/retry/retry_policy.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ pub struct RequestInfo<'a> {
2020
/// Returned by implementations of RetryPolicy. Instructs the driver on what
2121
/// to do about the request after it failed.
2222
#[derive(Clone, Debug, PartialEq, Eq)]
23+
#[non_exhaustive]
2324
pub enum RetryDecision {
2425
/// Request will be sent to the same shard on the same host.
2526
RetrySameTarget(Option<Consistency>), // None means that the same consistency should be used as before

0 commit comments

Comments
 (0)