pub trait Engine: Send + Sync {
// Required method
fn speak(&self, request: SpeakRequest) -> Receiver<Result<Chunk, Error>>;
}Expand description
Text-to-speech rendering. Channels rather than &mut self, so a caller
can hold one engine and serve every queue without a mutex on the render
path.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".