agglayer_types/
proof_modes.rs1use std::fmt;
2
3#[derive(Clone, Debug, PartialEq, Eq)]
4pub enum ExecutionMode {
5 Default,
6 DryRun,
7}
8
9impl ExecutionMode {
10 pub const fn prefix(&self) -> &'static str {
11 match self {
12 ExecutionMode::Default => "",
13 ExecutionMode::DryRun => "(Dry run) ",
14 }
15 }
16}
17
18#[derive(Clone, Debug, serde::Serialize, serde::Deserialize, thiserror::Error, PartialEq, Eq)]
19pub enum GenerationType {
20 Native,
21 Prover,
22}
23
24impl fmt::Display for GenerationType {
25 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
26 match self {
27 GenerationType::Native => write!(f, "native"),
28 GenerationType::Prover => write!(f, "prover"),
29 }
30 }
31}