pub trait PcmSource {
// Required methods
fn spec(&self) -> &PcmSpec;
fn read_buffer(&mut self) -> Result<Option<PcmBuffer>>;
}Expand description
Required Methods§
Sourcefn read_buffer(&mut self) -> Result<Option<PcmBuffer>>
fn read_buffer(&mut self) -> Result<Option<PcmBuffer>>
Reads the next buffer, or Ok(None) once the source is drained.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".