pub struct RoutingEntry {
pub shard_id: ShardId,
pub primary: NodeId,
pub replicas: Vec<NodeId>,
pub key_range_start: u64,
pub key_range_end: u64,
}Expand description
An entry in the routing table.
Fields§
§shard_id: ShardId§primary: NodeId§replicas: Vec<NodeId>§key_range_start: u64§key_range_end: u64Trait Implementations§
Source§impl Clone for RoutingEntry
impl Clone for RoutingEntry
Source§fn clone(&self) -> RoutingEntry
fn clone(&self) -> RoutingEntry
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RoutingEntry
impl RefUnwindSafe for RoutingEntry
impl Send for RoutingEntry
impl Sync for RoutingEntry
impl Unpin for RoutingEntry
impl UnsafeUnpin for RoutingEntry
impl UnwindSafe for RoutingEntry
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