pub fn read_index(&mut self, rctx: Vec<u8>) {
        let mut msg = Message::new();
        msg.set_field_type(MsgReadIndex);
        let mut entry = Entry::new();
        entry.set_Data(Bytes::from(rctx));
        msg.set_entries(RepeatedField::from(vec![entry]));
        self.raft.step(msg);
    }
/// ReadIndex requests a read state. The read state will be set in ready.
/// Read State has a read index. Once the application advances further than the read
/// index, any linearizable read requests issued before the read request can be
/// processed safely. The read state will have the same rctx attached.
ReadIndex requests a read state. The read state will be set in ready.
Read State has a read index. Once the application advances further than the read
index, any linearizable read requests issued before the read request can be
processed safely. The read state will have the same rctx attached.
ReadIndex requests a read state . The read state will be set in ready . Read State has a read index . Once the application advances further than the read index any linearizable read requests issued before the read request can be processed safely . The read state will have the same rctx attached .
pub fn read_index(&mut self, rctx: Vec<u8>) {
        let mut msg = Message::new();
        msg.set_field_type(MsgReadIndex);
        let mut entry = Entry::new();
        entry.set_Data(Bytes::from(rctx));
        msg.set_entries(RepeatedField::from(vec![entry]));
        self.raft.step(msg);
    }
pub fn read_index ( & mut self , rctx : Vec < u8 > ) { let mut msg = Message :: new ( ) ; msg . set_field_type ( MsgReadIndex ) ; let mut entry = Entry :: new ( ) ; entry . set_Data ( Bytes :: from ( rctx ) ) ; msg . set_entries ( RepeatedField :: from ( vec ! [ entry ] ) ) ; self . raft . step ( msg ) ; }
ReadIndex requests a read state.
ReadIndex requests a read state .
&mut self
rctx
Vec<u8>