pub fn snapshot(&self, index: u64, snapshot: &[u8]) {
        // Your code here.
        // Example:
        // self.raft.snapshot(index, snapshot)
        crate::your_code_here((index, snapshot));
    }
/// The service says it has created a snapshot that has all info up to and
/// including index. This means the service no longer needs the log through
/// (and including) that index. Raft should now trim its log as much as
/// possible.
The service says it has created a snapshot that has all info up to and
including index. This means the service no longer needs the log through
(and including) that index. Raft should now trim its log as much as
possible.
The service says it has created a snapshot that has all info up to and including index . This means the service no longer needs the log through ( and including ) that index . Raft should now trim its log as much as possible .
pub fn snapshot(&self, index: u64, snapshot: &[u8]) {
        // Your code here.
        // Example:
        // self.raft.snapshot(index, snapshot)
        crate::your_code_here((index, snapshot));
    }
pub fn snapshot ( & self , index : u64 , snapshot : & [ u8 ] ) { // Your code here. // Example: // self.raft.snapshot(index, snapshot) crate :: your_code_here ( ( index , snapshot ) ) ; }
The service says it has created a snapshot that has all info up to and
including index.
The service says it has created a snapshot that has all info up to and including index .
&self
index
u64
snapshot
&[u8]