scp_kernel/phase.rs
1#[derive(Debug, PartialEq)]
2pub enum Phase {
3 Prepare,
4 Confirm,
5 Externalize,
6 Num,
7}
8
9impl core::fmt::Display for Phase {
10 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
11 let phase = match self {
12 Self::Prepare => "Prepare",
13 Self::Confirm => "Confirm",
14 Self::Externalize => "Externalize",
15 Self::Num => "Num",
16 };
17
18 f.write_str(phase)
19 }
20}