gstreamer::prelude

Trait TaskPoolExtManual

Source
pub trait TaskPoolExtManual: IsA<TaskPool> + 'static {
    // Provided method
    fn push<P: FnOnce() + Send + 'static>(
        &self,
        func: P,
    ) -> Result<Option<TaskPoolTaskHandle>, Error> { ... }
}

Provided Methods§

Source

fn push<P: FnOnce() + Send + 'static>( &self, func: P, ) -> Result<Option<TaskPoolTaskHandle>, Error>

Start the execution of a new thread from self.

§func

the function to call

§Returns

a pointer that should be used for the gst_task_pool_join function. This pointer can be None, you must check error to detect errors. If the pointer is not None and gst_task_pool_join() is not used, call gst_task_pool_dispose_handle() instead.

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.

Implementors§