pub trait OpRegion<D = RegionData>: PartialOrd<Self> + Ord + Send + Sync + Debug {
    fn loc(&self) -> DhtLocation;
    fn timestamp(&self) -> Timestamp;
    fn region_data(&self) -> D;
    fn bound(timestamp: Timestamp, loc: DhtLocation) -> Self;

    fn coords(&self, topo: &Topology) -> SpacetimeQuantumCoords { ... }
}
Expand description

Everything that Kitsune needs to know about an Op. Intended to be implemented by the host.

Required Methods§

The op’s Location

The op’s Timestamp

The RegionData that would be produced if this op were the only op in the region. The sum of these produces the RegionData for the whole region.

Create an Op with arbitrary data but that has the given timestamp and location. Used for bounded range queries based on the PartialOrd impl of the op.

Provided Methods§

The quantized space and time coordinates, based on the location and timestamp.

Implementors§