pub trait PcmSink {
// Required methods
fn spec(&self) -> &PcmSpec;
fn write_buffer(&mut self, buffer: PcmBuffer) -> Result<()>;
fn flush(&mut self) -> Result<()>;
}Expand description
Required Methods§
Sourcefn write_buffer(&mut self, buffer: PcmBuffer) -> Result<()>
fn write_buffer(&mut self, buffer: PcmBuffer) -> Result<()>
Writes one buffer to the sink.
Returns an error when the buffer’s spec does not match the sink’s spec.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".