openraft 0.10.0-alpha.18

Advanced Raft consensus
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::RaftTypeConfig;
use crate::type_config::alias::JoinHandleOf;
use crate::type_config::alias::WatchSenderOf;

/// Handle to a running `SnapshotTransmitter` task.
///
/// Dropping this handle cancels the snapshot transmission.
pub(crate) struct SnapshotTransmitterHandle<C>
where C: RaftTypeConfig
{
    /// The spawn handle of the `SnapshotTransmitter` task.
    pub(crate) _join_handle: JoinHandleOf<C, ()>,

    /// Dropping this sender signals the task to cancel.
    pub(crate) _tx_cancel: WatchSenderOf<C, ()>,
}