pub fn start<M>(&self, command: &M) -> Result<(u64, u64)>
    where
        M: labcodec::Message,
    {
        // Your code here.
        // Example:
        // self.raft.start(command)
        crate::your_code_here(command)
    }
/// the service using Raft (e.g. a k/v server) wants to start
/// agreement on the next command to be appended to Raft's log. if this
/// server isn't the leader, returns [`Error::NotLeader`]. otherwise start
/// the agreement and return immediately. there is no guarantee that this
/// command will ever be committed to the Raft log, since the leader
/// may fail or lose an election. even if the Raft instance has been killed,
/// this function should return gracefully.
///
/// the first value of the tuple is the index that the command will appear
/// at if it's ever committed. the second is the current term.
///
/// This method must return without blocking on the raft.
the service using Raft  wants to start
agreement on the next command to be appended to Raft's log. if this
server isn't the leader, returns [`Error::NotLeader`]. otherwise start
the agreement and return immediately. there is no guarantee that this
command will ever be committed to the Raft log, since the leader
may fail or lose an election. even if the Raft instance has been killed,
this function should return gracefully.

the first value of the tuple is the index that the command will appear
at if it's ever committed. the second is the current term.

This method must return without blocking on the raft.
the service using Raft wants to start agreement on the next command to be appended to Raft ' s log . if this server isn ' t the leader returns [ ` Error :: NotLeader ` ] . otherwise start the agreement and return immediately . there is no guarantee that this command will ever be committed to the Raft log since the leader may fail or lose an election . even if the Raft instance has been killed this function should return gracefully . the first value of the tuple is the index that the command will appear at if it ' s ever committed . the second is the current term . This method must return without blocking on the raft .
pub fn start<M>(&self, command: &M) -> Result<(u64, u64)>
    where
        M: labcodec::Message,
    {
        // Your code here.
        // Example:
        // self.raft.start(command)
        crate::your_code_here(command)
    }
pub fn start < M > ( & self , command : & M ) -> Result < ( u64 , u64 ) > where M : labcodec :: Message , { // Your code here. // Example: // self.raft.start(command) crate :: your_code_here ( command ) }
the service using Raft (e.g.
the service using Raft ( e . g .
&self
command
&M