openraft 0.10.2

Advanced Raft consensus
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
/// What [`DeadlineNotifier::set_deadline()`](crate::core::DeadlineNotifier::set_deadline) did.
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub(crate) struct DeadlineUpdate {
    /// The stored deadline changed.
    pub(crate) changed: bool,

    /// The worker was woken to read the new deadline and re-arm its timer.
    ///
    /// The worker is woken only when it could otherwise sleep past the new deadline: when the new
    /// deadline is earlier than the stored one, or the stored one is `None` or has passed.
    pub(crate) woke: bool,
}