(kind: Kind, message: &str)
| 58 | } |
| 59 | |
| 60 | pub(crate) fn capture(kind: Kind, message: &str) -> bool { |
| 61 | let mut active = ACTIVE.lock().unwrap_or_else(|e| e.into_inner()); |
| 62 | if let Some(state) = active.as_mut() { |
| 63 | state.capture(kind, message); |
| 64 | true |
| 65 | } else { |
| 66 | false |
| 67 | } |
| 68 | } |
| 69 | |
| 70 | pub(crate) struct LiveOutput; |
| 71 |