pub trait AudioSinkImpl: AudioSinkImplExt + AudioBaseSinkImpl {
// Provided methods
fn close(&self) -> Result<(), LoggableError> { ... }
fn delay(&self) -> u32 { ... }
fn open(&self) -> Result<(), LoggableError> { ... }
fn prepare(
&self,
spec: &mut AudioRingBufferSpec,
) -> Result<(), LoggableError> { ... }
fn unprepare(&self) -> Result<(), LoggableError> { ... }
fn write(&self, audio_data: &[u8]) -> Result<i32, LoggableError> { ... }
fn reset(&self) { ... }
}
Provided Methods§
fn close(&self) -> Result<(), LoggableError>
fn delay(&self) -> u32
fn open(&self) -> Result<(), LoggableError>
fn prepare(&self, spec: &mut AudioRingBufferSpec) -> Result<(), LoggableError>
fn unprepare(&self) -> Result<(), LoggableError>
fn write(&self, audio_data: &[u8]) -> Result<i32, LoggableError>
fn reset(&self)
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.