pub enum RingError {
EmptyRing(&'static str),
ZeroWeight(&'static str),
NodeAlreadyExists(String),
NodeNotFound(String),
}Expand description
Error returned for an invalid ring configuration or node weight.
Variants§
EmptyRing(&'static str)
The configured base virtual node count is zero.
ZeroWeight(&'static str)
A node was added or previewed with a zero replica multiplier.
NodeAlreadyExists(String)
A physical node with this identifier is already registered.
NodeNotFound(String)
No physical node has this identifier.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RingError
impl RefUnwindSafe for RingError
impl Send for RingError
impl Sync for RingError
impl Unpin for RingError
impl UnsafeUnpin for RingError
impl UnwindSafe for RingError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more