risingwave_common::hash

Trait VnodeMappingItem

source
pub trait VnodeMappingItem {
    type Item: Copy + Ord + Hash + Debug;
}
Expand description

Trait for items that can be used as keys in VnodeMapping.

Required Associated Types§

source

type Item: Copy + Ord + Hash + Debug

The type of the item.

Currently, there are two types of items: WorkerSlotId and ActorId. We don’t use them directly as the generic parameter because they’re the same type aliases.

Implementors§