()
| 71 | |
| 72 | impl LiveOutput { |
| 73 | pub(crate) fn start() -> Option<Self> { |
| 74 | let mut active = ACTIVE.lock().unwrap_or_else(|e| e.into_inner()); |
| 75 | if active.is_some() { |
| 76 | return None; |
| 77 | } |
| 78 | *active = Some(State::default()); |
| 79 | Some(Self) |
| 80 | } |
| 81 | } |
| 82 | |
| 83 | impl Drop for LiveOutput { |
no test coverage detected