pub fn cond_install_snapshot(
        &self,
        last_included_term: u64,
        last_included_index: u64,
        snapshot: &[u8],
    ) -> bool {
        // Your code here.
        // Example:
        // self.raft.cond_install_snapshot(last_included_term, last_included_index, snapshot)
        crate::your_code_here((last_included_term, last_included_index, snapshot));
    }
/// A service wants to switch to snapshot.  
///
/// Only do so if Raft hasn't have more recent info since it communicate
/// the snapshot on `apply_ch`.
A service wants to switch to snapshot.
Only do so if Raft hasn't have more recent info since it communicate
the snapshot on `apply_ch`.
A service wants to switch to snapshot . Only do so if Raft hasn ' t have more recent info since it communicate the snapshot on ` apply_ch ` .
pub fn cond_install_snapshot(
        &self,
        last_included_term: u64,
        last_included_index: u64,
        snapshot: &[u8],
    ) -> bool {
        // Your code here.
        // Example:
        // self.raft.cond_install_snapshot(last_included_term, last_included_index, snapshot)
        crate::your_code_here((last_included_term, last_included_index, snapshot));
    }
pub fn cond_install_snapshot ( & self , last_included_term : u64 , last_included_index : u64 , snapshot : & [ u8 ] , ) -> bool { // Your code here. // Example: // self.raft.cond_install_snapshot(last_included_term, last_included_index, snapshot) crate :: your_code_here ( ( last_included_term , last_included_index , snapshot ) ) ; }
A service wants to switch to snapshot.
A service wants to switch to snapshot .
&self
last_included_term
u64
last_included_index
u64
snapshot
&[u8]