pub fn campaign(&mut self) -> Result<(), RaftError> {
        let mut msg = Message::new();
        msg.set_field_type(MessageType::MsgHup);
        self.raft.step(msg)
    }
/// Campaign causes this RawNode to transition to candidate state.
Campaign causes this RawNode to transition to candidate state.
Campaign causes this RawNode to transition to candidate state .
pub fn campaign(&mut self) -> Result<(), RaftError> {
        let mut msg = Message::new();
        msg.set_field_type(MessageType::MsgHup);
        self.raft.step(msg)
    }
pub fn campaign ( & mut self ) -> Result < ( ) , RaftError > { let mut msg = Message :: new ( ) ; msg . set_field_type ( MessageType :: MsgHup ) ; self . raft . step ( msg ) }
Campaign causes this RawNode to transition to candidate state.
Campaign causes this RawNode to transition to candidate state .
&mut self