#[repr(C)]pub struct PdRoute {
pub shard: i64,
pub read_write: u8,
}Expand description
Routing decision returned by the plugin.
Fields§
§shard: i64Which shard the query should go to.
-1 for all shards, -2 for unknown, this setting is ignored.
read_write: u8Is the query a read and should go to a replica?
1 for true, 0 for false, 2 for unknown, this setting is ignored.
Trait Implementations§
impl Copy for PdRoute
Auto Trait Implementations§
impl Freeze for PdRoute
impl RefUnwindSafe for PdRoute
impl Send for PdRoute
impl Sync for PdRoute
impl Unpin for PdRoute
impl UnwindSafe for PdRoute
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> 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 more