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
//! Supervisor restart policy (shared by bytecode `SetRestartPolicy` and host
//! [`crate::Supervisor`] / [`crate::ChildSpec`]).
// Docs ratchet: public items here predate `missing_docs`. Delete this
// allow once they are documented; new files get the lint by default.
/// Restart policy consulted when a supervised flow terminates.
///
/// Bytecode [`super::Opcode::SetRestartPolicy`] encodes:
/// `0` = [`Self::Always`], `1` = [`Self::OnFailure`], `2` = [`Self::Never`].