(&self)
| 67 | } |
| 68 | |
| 69 | pub fn disable(&self) -> Result<()> { |
| 70 | let response = self.send_command(IpcCommand::Disable)?; |
| 71 | match response { |
| 72 | IpcResponse::Ack => Ok(()), |
| 73 | IpcResponse::Err => anyhow::bail!("Failed to disable tracking"), |
| 74 | } |
| 75 | } |
| 76 | |
| 77 | pub fn ping(&self) -> Result<()> { |
| 78 | let response = self.send_command(IpcCommand::Ping)?; |
no test coverage detected