pub struct ShardRoutingSwitchPlan {
pub from: ShardRoutingKind,
pub to: ShardRoutingKind,
pub active_count: u32,
}Expand description
Operator plan for switching keyed routing from modulus to stable virtual.
Fields§
§from: ShardRoutingKindPrevious routing mode (always ShardRoutingKind::Modulus).
to: ShardRoutingKindTarget routing mode (always ShardRoutingKind::StableVirtual).
active_count: u32Active shard count preserved across the switch.
Trait Implementations§
Source§impl Clone for ShardRoutingSwitchPlan
impl Clone for ShardRoutingSwitchPlan
Source§fn clone(&self) -> ShardRoutingSwitchPlan
fn clone(&self) -> ShardRoutingSwitchPlan
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ShardRoutingSwitchPlan
Source§impl Debug for ShardRoutingSwitchPlan
impl Debug for ShardRoutingSwitchPlan
impl Eq for ShardRoutingSwitchPlan
Source§impl PartialEq for ShardRoutingSwitchPlan
impl PartialEq for ShardRoutingSwitchPlan
impl StructuralPartialEq for ShardRoutingSwitchPlan
Auto Trait Implementations§
impl Freeze for ShardRoutingSwitchPlan
impl RefUnwindSafe for ShardRoutingSwitchPlan
impl Send for ShardRoutingSwitchPlan
impl Sync for ShardRoutingSwitchPlan
impl Unpin for ShardRoutingSwitchPlan
impl UnsafeUnpin for ShardRoutingSwitchPlan
impl UnwindSafe for ShardRoutingSwitchPlan
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