openraft 0.10.2

Advanced Raft consensus
Documentation
use crate::RaftTypeConfig;
use crate::raft_state::IOId;
use crate::replication::replicate::Replicate;
use crate::type_config::alias::LogIdOf;
use crate::type_config::alias::WatchReceiverOf;

#[derive(Clone)]
pub(crate) struct EventWatcher<C>
where C: RaftTypeConfig
{
    /// The leader's current log plan for the target, or `None` before it publishes one.
    ///
    /// A plan without payload clears the plan before it, see [`Replicate::payload`].
    pub(crate) replicate_rx: WatchReceiverOf<C, Option<Replicate<C>>>,
    pub(crate) committed_rx: WatchReceiverOf<C, Option<LogIdOf<C>>>,

    pub(crate) io_accepted_rx: WatchReceiverOf<C, IOId<C>>,
    pub(crate) io_submitted_rx: WatchReceiverOf<C, IOId<C>>,
}