Module crdts::pncounter

source ·
Expand description

This module contains a Positive-Negative Counter.

Structs

  • An Op which is produced through from mutating the counter Ship these ops to other replicas to have them sync up.
  • PNCounter allows the counter to be both incremented and decremented by representing the increments (P) and the decrements (N) in separate internal G-Counters.

Enums

  • The Direction of an Op.