pub struct MigrationState {
pub from: String,
pub to: String,
}Expand description
One in-flight migration. Carries enough metadata so the server
cement can encode -QUIESCED <prefix> migrating to <host:port>
without re-resolving the target.
Fields§
§from: StringSource writer node id (the node currently quiescing).
to: StringTarget writer node id (the node receiving the slice).
Trait Implementations§
Source§impl Clone for MigrationState
impl Clone for MigrationState
Source§fn clone(&self) -> MigrationState
fn clone(&self) -> MigrationState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MigrationState
impl Debug for MigrationState
impl Eq for MigrationState
Source§impl PartialEq for MigrationState
impl PartialEq for MigrationState
Source§fn eq(&self, other: &MigrationState) -> bool
fn eq(&self, other: &MigrationState) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MigrationState
Auto Trait Implementations§
impl Freeze for MigrationState
impl RefUnwindSafe for MigrationState
impl Send for MigrationState
impl Sync for MigrationState
impl Unpin for MigrationState
impl UnsafeUnpin for MigrationState
impl UnwindSafe for MigrationState
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