Struct tikv_client::request::plan::PreserveShard
source · pub struct PreserveShard<P: Plan + Shardable> {
pub inner: P,
pub shard: Option<P::Shard>,
}
Expand description
When executed, the plan clones the shard and execute its inner plan, then
returns (shard, response)
.
It’s useful when the information of shard are lost in the response but needed for processing.
Fields§
§inner: P
§shard: Option<P::Shard>
Trait Implementations§
source§impl<P> Plan for PreserveShard<P>where
P: Plan + Shardable,
impl<P> Plan for PreserveShard<P>where P: Plan + Shardable,
Auto Trait Implementations§
impl<P> RefUnwindSafe for PreserveShard<P>where P: RefUnwindSafe, <P as Shardable>::Shard: RefUnwindSafe,
impl<P> Send for PreserveShard<P>
impl<P> Sync for PreserveShard<P>
impl<P> Unpin for PreserveShard<P>where P: Unpin, <P as Shardable>::Shard: Unpin,
impl<P> UnwindSafe for PreserveShard<P>where P: UnwindSafe, <P as Shardable>::Shard: UnwindSafe,
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