#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum FailureReason {
IdentityBuild,
HandlerError,
CheckpointError,
}
impl FailureReason {
#[must_use]
pub const fn as_str(self) -> &'static str {
match self {
Self::IdentityBuild => "identity_build",
Self::HandlerError => "handler_error",
Self::CheckpointError => "checkpoint_error",
}
}
}