Method
set_sync
(&mut self, enabled: bool)
Source from the content-addressed store, hash-verified
| 436 | } |
| 437 | |
| 438 | fn set_sync(&mut self, enabled: bool) -> io::Result<bool> { |
| 439 | let mut previous = true; |
| 440 | for o in self.captured_out.iter().rev() { |
| 441 | if let CapturedOut::SetSync(e) = o { |
| 442 | previous = *e; |
| 443 | break; |
| 444 | } |
| 445 | } |
| 446 | self.captured_out.push(CapturedOut::SetSync(enabled)); |
| 447 | Ok(previous) |
| 448 | } |
| 449 | |
| 450 | async fn play_tone(&mut self, tone: Tone) -> io::Result<()> { |
| 451 | self.captured_out.push(CapturedOut::PlayTone(tone)); |
Callers
nothing calls this directly
Tested by
no test coverage detected