pub struct ShardMapConfig {
pub vnodes_per_node: u32,
pub use_weights: bool,
}Expand description
Configuration for the shard map.
Fields§
§vnodes_per_node: u32Base number of virtual nodes per physical node.
use_weights: boolWhether to use node weight for virtual node count scaling.
Trait Implementations§
Source§impl Clone for ShardMapConfig
impl Clone for ShardMapConfig
Source§fn clone(&self) -> ShardMapConfig
fn clone(&self) -> ShardMapConfig
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 moreSource§impl Debug for ShardMapConfig
impl Debug for ShardMapConfig
Auto Trait Implementations§
impl Freeze for ShardMapConfig
impl RefUnwindSafe for ShardMapConfig
impl Send for ShardMapConfig
impl Sync for ShardMapConfig
impl Unpin for ShardMapConfig
impl UnsafeUnpin for ShardMapConfig
impl UnwindSafe for ShardMapConfig
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> 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