Struct consistent_rs::Consistant [] [src]

pub struct Consistant {
    pub replicas_num: usize,
    // some fields omitted
}

Consistant holds the information of the hash ring.

Fields

Methods

impl Consistant
[src]

Crete a new instance of Consistant.

Get the count of added elements.

Add an elment to the hash ring.

Get the cloeset element's name to the given "name".

Get the N cloeset elements' names to the given "name".

Remove the given element.

Trait Implementations

impl Debug for Consistant
[src]

Formats the value using the given formatter.

impl Default for Consistant
[src]

Returns the "default value" for a type. Read more