File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
scylla/src/policies/retry Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -17,11 +17,17 @@ pub struct RequestInfo<'a> {
17
17
pub consistency : Consistency ,
18
18
}
19
19
20
+ /// Returned by implementations of RetryPolicy. Instructs the driver on what
21
+ /// to do about the request after it failed.
20
22
#[ derive( Clone , Debug , PartialEq , Eq ) ]
21
23
pub enum RetryDecision {
24
+ /// Request will be sent to the same shard on the same host.
22
25
RetrySameTarget ( Option < Consistency > ) , // None means that the same consistency should be used as before
26
+ /// Request will be sent to the next target generated by load balancing policy.
23
27
RetryNextTarget ( Option < Consistency > ) , // ditto
28
+ /// Fails the whole request.
24
29
DontRetry ,
30
+ /// Will cause the driver to return an empty successful response.
25
31
IgnoreWriteError ,
26
32
}
27
33
You can’t perform that action at this time.
0 commit comments