Trait lfchring::Node[][src]

pub trait Node {
    fn hashring_node_id(&self) -> Cow<'_, [u8]>;
}

A trait to be implemented by any type that needs to act as a distinct node in the consistent hashing ring.

Required methods

fn hashring_node_id(&self) -> Cow<'_, [u8]>[src]

Returns a byte slice that uniquely identifies the particular Node from the rest of its kind.

Loading content...

Implementations on Foreign Types

impl Node for String[src]

impl Node for str[src]

impl Node for Vec<u8>[src]

impl Node for &[u8][src]

impl Node for [u8][src]

Loading content...

Implementors

Loading content...