Returns the canonical string representation.
(&self)
| 153 | |
| 154 | /// Returns the canonical string representation. |
| 155 | pub fn as_str(&self) -> &'static str { |
| 156 | match self { |
| 157 | Phase::Idle => "idle", |
| 158 | Phase::Active => "active", |
| 159 | Phase::ActiveRecorded => "active_recorded", |
| 160 | Phase::Ended => "ended", |
| 161 | } |
| 162 | } |
| 163 | } |
| 164 | |
| 165 | impl fmt::Display for Phase { |
no outgoing calls