pub trait AudioVisualizerImpl: ElementImpl + ObjectSubclass<Type: IsA<AudioVisualizer>> {
// Provided methods
fn setup(
&self,
token: &AudioVisualizerSetupToken<'_>,
) -> Result<(), LoggableError> { ... }
fn render(
&self,
audio_buffer: &BufferRef,
video_frame: &mut VideoFrameRef<&mut BufferRef>,
) -> Result<(), LoggableError> { ... }
fn decide_allocation(
&self,
query: &mut Allocation,
) -> Result<(), LoggableError> { ... }
}
Provided Methods§
fn setup( &self, token: &AudioVisualizerSetupToken<'_>, ) -> Result<(), LoggableError>
fn render( &self, audio_buffer: &BufferRef, video_frame: &mut VideoFrameRef<&mut BufferRef>, ) -> Result<(), LoggableError>
fn decide_allocation(&self, query: &mut Allocation) -> Result<(), LoggableError>
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.