pub struct ClusterChange {
pub kind: ClusterChangeKind,
pub peer_idx: Option<u32>,
pub peer: Option<PeerSpec>,
}Expand description
One pending cluster-membership mutation.
A staged mutation is a description; it is not applied until
ClusterAdmin::cluster_commit is called.
Fields§
§kind: ClusterChangeKindAdd or Remove.
peer_idx: Option<u32>Peer index for Remove; ignored for Add.
peer: Option<PeerSpec>Peer description for Add; ignored for Remove.
Trait Implementations§
Source§impl Clone for ClusterChange
impl Clone for ClusterChange
Source§fn clone(&self) -> ClusterChange
fn clone(&self) -> ClusterChange
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 ClusterChange
impl Debug for ClusterChange
Source§impl PartialEq for ClusterChange
impl PartialEq for ClusterChange
Source§fn eq(&self, other: &ClusterChange) -> bool
fn eq(&self, other: &ClusterChange) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ClusterChange
impl StructuralPartialEq for ClusterChange
Auto Trait Implementations§
impl Freeze for ClusterChange
impl RefUnwindSafe for ClusterChange
impl Send for ClusterChange
impl Sync for ClusterChange
impl Unpin for ClusterChange
impl UnsafeUnpin for ClusterChange
impl UnwindSafe for ClusterChange
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.