Struct tikv_client::request::plan::Dispatch
source · pub struct Dispatch<Req: KvRequest> {
pub request: Req,
pub kv_client: Option<Arc<dyn KvClient + Send + Sync>>,
}
Expand description
The simplest plan which just dispatches a request to a specific kv server.
Fields§
§request: Req
§kv_client: Option<Arc<dyn KvClient + Send + Sync>>
Trait Implementations§
source§impl<Req: KvRequest> Plan for Dispatch<Req>
impl<Req: KvRequest> Plan for Dispatch<Req>
source§impl<Req: KvRequest + StoreRequest> StoreRequest for Dispatch<Req>
impl<Req: KvRequest + StoreRequest> StoreRequest for Dispatch<Req>
source§fn apply_store(&mut self, store: &Store)
fn apply_store(&mut self, store: &Store)
Apply the request to specified TiKV store.
Auto Trait Implementations§
impl<Req> !RefUnwindSafe for Dispatch<Req>
impl<Req> Send for Dispatch<Req>
impl<Req> Sync for Dispatch<Req>
impl<Req> Unpin for Dispatch<Req>where Req: Unpin,
impl<Req> !UnwindSafe for Dispatch<Req>
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