pub fn apply_next_state(&mut self,next_state: TopicNextState) -> Vec<PartitionKV> {
        self.status.resolution = next_state.resolution;
        self.status.reason = next_state.reason;
        if next_state.replica_map.len() > 0 {
            self.status.set_replica_map(next_state.replica_map);
        }
        next_state.partitions
    }
/// update our state with next state, return remaining partiton kv changes
update our state with next state, return remaining partiton kv changes
update our state with next state return remaining partiton kv changes
pub fn apply_next_state(&mut self,next_state: TopicNextState) -> Vec<PartitionKV> {
        self.status.resolution = next_state.resolution;
        self.status.reason = next_state.reason;
        if next_state.replica_map.len() > 0 {
            self.status.set_replica_map(next_state.replica_map);
        }
        next_state.partitions
    }
pub fn apply_next_state ( & mut self , next_state : TopicNextState ) -> Vec < PartitionKV > { self . status . resolution = next_state . resolution ; self . status . reason = next_state . reason ; if next_state . replica_map . len ( ) > 0 { self . status . set_replica_map ( next_state . replica_map ) ; } next_state . partitions }
update our state with next state, return remaining partiton kv changes
update our state with next state return remaining partiton kv changes
&mut self
next_state
TopicNextState
&mut self
next_state
TopicNextState