1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
use PhantomData;
use since;
use crateRaftTypeConfig;
/// **REMOVED**: Use `openraft_legacy::network_v1::AppendEntriesResponse` instead.
///
/// The v1 `AppendEntriesResponse` has been moved to the `openraft-legacy` crate, next to the v1
/// `RaftNetwork` that returns it. This empty stub only names the new path in its deprecation
/// warning: it has no variants or conversions, so any other use fails to compile.
///
/// # Migration
///
/// Add to `Cargo.toml`:
/// ```toml
/// [dependencies]
/// openraft-legacy = "0.10.2"
/// ```
///
/// A transport that serializes the response with Serde enables the `serde` feature of
/// `openraft-legacy`, which also enables `openraft/serde`:
/// ```toml
/// [dependencies]
/// openraft-legacy = { version = "0.10.2", features = ["serde"] }
/// ```
///
/// The moved type derives `Serialize` and `Deserialize` only with this feature: `openraft/serde`
/// derived them before 0.10.2 and no longer does. A transport that encodes the response without
/// Serde does not need the feature.
///
/// Update imports:
/// ```ignore
/// use openraft_legacy::network_v1::AppendEntriesResponse;
/// ```