()
| 82 | } |
| 83 | |
| 84 | async fn reset() { |
| 85 | FeatureCommand::registry_global().for_each(|cmd| { |
| 86 | (cmd.disable)(); |
| 87 | }); |
| 88 | PORT.0 |
| 89 | .send(ProtocolMessage { |
| 90 | ty: "__CLOSED__".to_owned(), |
| 91 | others: Default::default(), |
| 92 | }) |
| 93 | .await |
| 94 | .unwrap(); |
| 95 | CONNECTED.store(false, Ordering::SeqCst); |
| 96 | } |
| 97 | |
| 98 | async fn dowith_event(_: EventMessage) -> Result<()> { |
| 99 | unimplemented!() |