MCPcopy Index your code
hub / github.com/endbasic/endbasic / set_sync

Method set_sync

std/src/testutils.rs:438–448  ·  view source on GitHub ↗
(&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

Calls 2

iterMethod · 0.80
pushMethod · 0.80

Tested by

no test coverage detected