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> Freeze for RetryableMultiRegion<P, PdC>where
P: Freeze,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§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