Struct handoff_counter::Counter
[−]
[src]
pub struct Counter<Id: Hash + Eq + Copy> { /* fields omitted */ }
Methods
impl<Id: Hash + Eq + Copy> Counter<Id>
[src]
fn new(id: Id, tier: usize) -> Counter<Id>
fn id(&self) -> Id
fn tier(&self) -> usize
fn value(&self) -> u64
fn vals(&self) -> &HashMap<Id, u64>
fn slots(&self) -> &HashMap<Id, (u64, u64)>
fn tokens(&self) -> &HashMap<(Id, Id), (u64, u64, u64)>
fn needs_to_handoff(&self) -> bool
fn incr(&mut self)
fn view(&self, id: Id, tier: usize) -> Self
fn cleaning_view(&self) -> Self
fn merge(&mut self, other: &Self)
Trait Implementations
impl<Id: Clone + Hash + Eq + Copy> Clone for Counter<Id>
[src]
fn clone(&self) -> Counter<Id>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more