pub trait AudioSource: Sync + Send {
type Format: SampleFormat;
// Required method
fn audio_read(&mut self) -> Option<Self::Format>;
}Required Associated Types§
type Format: SampleFormat
Required Methods§
fn audio_read(&mut self) -> Option<Self::Format>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".