Enum lfchring::HashRingError[][src]

pub enum HashRingError {
    InvalidConfiguration(u8Vnid),
    VirtualNodeAlreadyExists(String),
    VirtualNodeDoesNotExist(String),
    ConcurrentModification,
    EmptyRing,
    SingleDistinctNodeRing,
}

An error type returned by calls to the API exposed by this crate.

Variants

InvalidConfiguration(u8Vnid)

The configuration parameters for the construction of the consistent hashing ring appears to be invalid.

The error contains the invalid values for the replication factor and the number of virtual nodes per ring node, in this order.

VirtualNodeAlreadyExists(String)

A hash collision has been detected; one of the virtual nodes probably already exists in the consistent hashing ring.

VirtualNodeDoesNotExist(String)

One of the virtual nodes does not exist in the consistent hashing ring.

ConcurrentModification

The write operation on the consistent hashing ring failed due to some other write operation occurring concurrently on it.

EmptyRing

The consistent hashing ring is currently empty.

SingleDistinctNodeRing

Only one Node currently populates the consistent hashing ring.

Trait Implementations

impl Debug for HashRingError[src]

impl Display for HashRingError[src]

impl Error for HashRingError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.