(&mut self)
| 441 | } |
| 442 | |
| 443 | async fn beep(&mut self) -> io::Result<()> { |
| 444 | let stdout = io::stdout(); |
| 445 | let mut stdout = stdout.lock(); |
| 446 | stdout.write_all(b"\x07")?; |
| 447 | stdout.flush()?; |
| 448 | thread::sleep(BEEP_TONE.duration); |
| 449 | Ok(()) |
| 450 | } |
| 451 | } |
| 452 | |
| 453 | #[cfg(test)] |