pub struct GroupMigration {Show 13 fields
pub migration_id: u64,
pub raft_group_id: RaftGroupId,
pub from_voters: BTreeSet<NodeId>,
pub target_voters: BTreeSet<NodeId>,
pub added_nodes: BTreeSet<NodeId>,
pub removed_voters: BTreeSet<NodeId>,
pub retain_removed: bool,
pub phase: MigrationPhase,
pub per_node_learner_status: BTreeMap<NodeId, LearnerStatus>,
pub last_error: Option<String>,
pub retry_count: u32,
pub created_at_ms: u64,
pub updated_at_ms: u64,
}Fields§
§migration_id: u64§raft_group_id: RaftGroupId§from_voters: BTreeSet<NodeId>§target_voters: BTreeSet<NodeId>§added_nodes: BTreeSet<NodeId>§removed_voters: BTreeSet<NodeId>§retain_removed: bool§phase: MigrationPhase§per_node_learner_status: BTreeMap<NodeId, LearnerStatus>§last_error: Option<String>§retry_count: u32§created_at_ms: u64§updated_at_ms: u64Implementations§
Source§impl GroupMigration
impl GroupMigration
pub fn is_running(&self) -> bool
Trait Implementations§
Source§impl Clone for GroupMigration
impl Clone for GroupMigration
Source§fn clone(&self) -> GroupMigration
fn clone(&self) -> GroupMigration
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 GroupMigration
impl Debug for GroupMigration
Source§impl<'de> Deserialize<'de> for GroupMigration
impl<'de> Deserialize<'de> for GroupMigration
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for GroupMigration
Source§impl PartialEq for GroupMigration
impl PartialEq for GroupMigration
Source§impl Serialize for GroupMigration
impl Serialize for GroupMigration
impl StructuralPartialEq for GroupMigration
Auto Trait Implementations§
impl Freeze for GroupMigration
impl RefUnwindSafe for GroupMigration
impl Send for GroupMigration
impl Sync for GroupMigration
impl Unpin for GroupMigration
impl UnsafeUnpin for GroupMigration
impl UnwindSafe for GroupMigration
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