Trait gstreamer::subclass::prelude::TaskPoolImpl
source · pub trait TaskPoolImpl:
GstObjectImpl
+ Send
+ Sync {
type Handle: TaskHandle;
// Required method
fn push(
&self,
func: TaskPoolFunction,
) -> Result<Option<Self::Handle>, Error>;
// Provided methods
fn prepare(&self) -> Result<(), Error> { ... }
fn cleanup(&self) { ... }
}
Required Associated Types§
sourcetype Handle: TaskHandle
type Handle: TaskHandle
Handle to be returned from the push
function to allow the caller to wait for the task’s
completion.
If unneeded, you can specify ()
or Infallible
for a handle
that does nothing on join
or drop.
Required Methods§
Provided Methods§
Object Safety§
This trait is not object safe.