Struct tikv_client::RetryOptions[][src]

pub struct RetryOptions {
    pub region_backoff: Backoff,
    pub lock_backoff: Backoff,


region_backoff: Backoff

How to retry when there is a region error and we need to resolve regions with PD.

lock_backoff: Backoff

How to retry when a key is locked.


impl RetryOptions[src]

pub fn new(region_backoff: Backoff, lock_backoff: Backoff) -> Self[src]

Constructs a new RetryOptions.

impl RetryOptions[src]

pub const fn default_optimistic() -> RetryOptions[src]

pub const fn default_pessimistic() -> RetryOptions[src]

pub const fn none() -> RetryOptions[src]

Trait Implementations

impl Clone for RetryOptions[src]

impl Debug for RetryOptions[src]

impl Eq for RetryOptions[src]

impl PartialEq<RetryOptions> for RetryOptions[src]

impl StructuralEq for RetryOptions[src]

impl StructuralPartialEq for RetryOptions[src]

Auto Trait Implementations

impl RefUnwindSafe for RetryOptions

impl Send for RetryOptions

impl Sync for RetryOptions

impl Unpin for RetryOptions

impl UnwindSafe for RetryOptions

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,