pub fn new(config: Config, storage: S) -> RawCoreNode<S> {
        let mut raft = Raft::new(config, storage);
        let prev_soft_st = raft.soft_state();
        let prev_hard_st = raft.hard_state();
        RawCoreNode {
            raft,
            prev_soft_st: Some(prev_soft_st),
            prev_hard_st,
        }
    }
/// NewRawNode instance a RawNode from the given configuration.
///
/// See Bootstrap() for bootstrapping an initial state; this replaces the follower
/// `peers` argument to this method (with identical behavior). However, It is
/// recommended that instead of calling Bootstrap. application bootstrap their
/// state manually by setting up a Storage that has a first index > 1 and which
/// stores the described ConfState as its InitialState.
NewRawNode instance a RawNode from the given configuration.
See Bootstrap() for bootstrapping an initial state; this replaces the follower
`peers` argument to this method (with identical behavior). However, It is
recommended that instead of calling Bootstrap. application bootstrap their
state manually by setting up a Storage that has a first index > 1 and which
stores the described ConfState as its InitialState.
NewRawNode instance a RawNode from the given configuration . See Bootstrap () for bootstrapping an initial state ; this replaces the follower ` peers ` argument to this method ( with identical behavior ) . However It is recommended that instead of calling Bootstrap . application bootstrap their state manually by setting up a Storage that has a first index > 1 and which stores the described ConfState as its InitialState .
pub fn new(config: Config, storage: S) -> RawCoreNode<S> {
        let mut raft = Raft::new(config, storage);
        let prev_soft_st = raft.soft_state();
        let prev_hard_st = raft.hard_state();
        RawCoreNode {
            raft,
            prev_soft_st: Some(prev_soft_st),
            prev_hard_st,
        }
    }
pub fn new ( config : Config , storage : S ) -> RawCoreNode < S > { let mut raft = Raft :: new ( config , storage ) ; let prev_soft_st = raft . soft_state ( ) ; let prev_hard_st = raft . hard_state ( ) ; RawCoreNode { raft , prev_soft_st : Some ( prev_soft_st ) , prev_hard_st , } }
NewRawNode instance a RawNode from the given configuration.
NewRawNode instance a RawNode from the given configuration .
config
Config
storage
S