Struct tikv_client::request::plan::RetryableMultiRegion
source · pub struct RetryableMultiRegion<P: Plan, PdC: PdClient> {
pub pd_client: Arc<PdC>,
pub backoff: Backoff,
pub preserve_region_results: bool,
/* private fields */
}
Fields§
§pd_client: Arc<PdC>
§backoff: Backoff
§preserve_region_results: bool
Preserve all regions’ results for other downstream plans to handle. If true, return Ok and preserve all regions’ results, even if some of them are Err. Otherwise, return the first Err if there is any.
Trait Implementations§
source§impl<P: Plan, PdC: PdClient> Clone for RetryableMultiRegion<P, PdC>
impl<P: Plan, PdC: PdClient> Clone for RetryableMultiRegion<P, PdC>
Auto Trait Implementations§
impl<P, PdC> RefUnwindSafe for RetryableMultiRegion<P, PdC>where P: RefUnwindSafe, PdC: RefUnwindSafe,
impl<P, PdC> Send for RetryableMultiRegion<P, PdC>
impl<P, PdC> Sync for RetryableMultiRegion<P, PdC>
impl<P, PdC> Unpin for RetryableMultiRegion<P, PdC>where P: Unpin,
impl<P, PdC> UnwindSafe for RetryableMultiRegion<P, PdC>where P: UnwindSafe, PdC: RefUnwindSafe,
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request