pub struct Silence;Expand description
A provider that makes no sound (tests, headless use).
Trait Implementations§
Source§impl SoundProvider for Silence
impl SoundProvider for Silence
Source§fn speak(&self, _text: &str, _language: &str)
fn speak(&self, _text: &str, _language: &str)
Says
text with the system’s voice for language, such as pt-BR, in
place of anything still being said.Source§fn stop_speaking(&self)
fn stop_speaking(&self)
Stops what is being said.
Source§fn speak_clip(&self, clip: &SoundClip)
fn speak_clip(&self, clip: &SoundClip)
Says a recording, in place of anything still being said, so that
SoundProvider::stop_speaking stops it. By default it only plays.Auto Trait Implementations§
impl Freeze for Silence
impl RefUnwindSafe for Silence
impl Send for Silence
impl Sync for Silence
impl Unpin for Silence
impl UnsafeUnpin for Silence
impl UnwindSafe for Silence
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more