pub struct AddKeyResult {
pub key: String,
pub hash: u64,
pub locations: Vec<AddKeyResultLocation>,
}Expand description
Represents the result of adding a key-value pair to the consistent hashing ring.
This struct contains information about the key, its hash value, and the locations (virtual nodes and their corresponding physical nodes) where the key was added.
Fields§
§key: StringThe key that was added to the ring.
hash: u64The hash value of the key.
locations: Vec<AddKeyResultLocation>The locations where the key was added, represented as a list of virtual node and physical node pairs.
Implementations§
Source§impl AddKeyResult
impl AddKeyResult
Sourcepub fn builder() -> AddKeyResultBuilder
pub fn builder() -> AddKeyResultBuilder
Create an instance of AddKeyResult using the builder syntax
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AddKeyResult
impl RefUnwindSafe for AddKeyResult
impl Send for AddKeyResult
impl Sync for AddKeyResult
impl Unpin for AddKeyResult
impl UnwindSafe for AddKeyResult
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