pub struct TokenRangeMigration<T> {
pub start_hash: u64,
pub end_hash: u64,
pub from_node: T,
pub to_node: T,
}Expand description
A proposed token interval to move when adding or removing a physical node.
Hash positions wrap around at u64::MAX, so start_hash can be greater
than end_hash.
Fields§
§start_hash: u64Hash at the start of the interval.
end_hash: u64Hash at the end of the interval.
from_node: TOwner of the interval before the membership change.
to_node: TOwner of the interval after the membership change.
Trait Implementations§
Source§impl<T: Clone> Clone for TokenRangeMigration<T>
impl<T: Clone> Clone for TokenRangeMigration<T>
Auto Trait Implementations§
impl<T> Freeze for TokenRangeMigration<T>where
T: Freeze,
impl<T> RefUnwindSafe for TokenRangeMigration<T>where
T: RefUnwindSafe,
impl<T> Send for TokenRangeMigration<T>where
T: Send,
impl<T> Sync for TokenRangeMigration<T>where
T: Sync,
impl<T> Unpin for TokenRangeMigration<T>where
T: Unpin,
impl<T> UnsafeUnpin for TokenRangeMigration<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for TokenRangeMigration<T>where
T: UnwindSafe,
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