fn persist(&mut self) {
        // Your code here (2C).
        // Example:
        // labcodec::encode(&self.xxx, &mut data).unwrap();
        // labcodec::encode(&self.yyy, &mut data).unwrap();
        // self.persister.save_raft_state(data);
    }
/// save Raft's persistent state to stable storage,
/// where it can later be retrieved after a crash and restart.
/// see paper's Figure 2 for a description of what should be persistent.
save Raft's persistent state to stable storage,
where it can later be retrieved after a crash and restart.
see paper's Figure 2 for a description of what should be persistent.
save Raft ' s persistent state to stable storage where it can later be retrieved after a crash and restart . see paper ' s Figure 2 for a description of what should be persistent .
fn persist(&mut self) {
        // Your code here (2C).
        // Example:
        // labcodec::encode(&self.xxx, &mut data).unwrap();
        // labcodec::encode(&self.yyy, &mut data).unwrap();
        // self.persister.save_raft_state(data);
    }
fn persist ( & mut self ) { // Your code here (2C). // Example: // labcodec::encode(&self.xxx, &mut data).unwrap(); // labcodec::encode(&self.yyy, &mut data).unwrap(); // self.persister.save_raft_state(data); }
save Raft's persistent state to stable storage,
where it can later be retrieved after a crash and restart.
save Raft ' s persistent state to stable storage where it can later be retrieved after a crash and restart .
&mut self