Skip to main content

AudioOps

Trait AudioOps 

Source
pub trait AudioOps {
    // Required method
    fn play_tone<'life0, 'async_trait>(
        &'life0 mut self,
        tone: Tone,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Primitive audio operations.

Required Methods§

Source

fn play_tone<'life0, 'async_trait>( &'life0 mut self, tone: Tone, ) -> Pin<Box<dyn Future<Output = Result<()>> + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Reproduces tone and returns once playback completes.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§