Struct fly::GCounter [] [src]

pub struct GCounter {
    pub data: HashMap<u32u64>,
}

Fields

data: HashMap<u32u64>

Methods

impl GCounter
[src]

fn new() -> GCounter

Trait Implementations

impl Debug for GCounter
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Counter for GCounter
[src]

fn incr(&mut self, node: u32, delta: u64)

fn value(&self) -> u64

fn decr(&mut self, node: u32, delta: u64)

impl Crdt for GCounter
[src]

fn merge(&self, other: &GCounter) -> GCounter