(&self, formatter: &mut std::fmt::Formatter<'_>)
| 47 | |
| 48 | impl std::fmt::Display for GuardOperation { |
| 49 | fn fmt(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { |
| 50 | formatter.write_str(match self { |
| 51 | Self::Status => "status", |
| 52 | Self::Diff => "diff", |
| 53 | Self::Record => "record", |
| 54 | Self::Add => "add", |
| 55 | Self::Materialize => "materialize", |
| 56 | Self::ViewSwitch => "view switch", |
| 57 | Self::AgentTurnEnd => "agent turn-end", |
| 58 | Self::AgentSessionEnd => "agent session-end", |
| 59 | Self::ForensicStatus => "status --no-reconcile", |
| 60 | Self::HistoryOnlyDiff => "history-only diff", |
| 61 | Self::ShimBootstrap => "shim bootstrap/reconcile", |
| 62 | }) |
| 63 | } |
| 64 | } |
| 65 | |
| 66 | /// Optional protection to perform only after the guard has decided to refuse. |
nothing calls this directly
no test coverage detected