Trait audio_streams::StreamSourceGenerator

source ·
pub trait StreamSourceGenerator: Sync + Send {
    // Required method
    fn generate(&self) -> Result<Box<dyn StreamSource>, BoxError>;
}
Expand description

StreamSourceGenerator is a trait used to abstract types that create StreamSource. It can be used when multiple types of StreamSource are needed.

Required Methods§

Implementors§

source§

impl StreamSourceGenerator for NoopStreamSourceGenerator

impl StreamSourceGenerator for AndroidAudioStreamSourceGenerator

impl StreamSourceGenerator for FileStreamSourceGenerator

impl StreamSourceGenerator for CrasStreamSourceGenerator