Struct gstreamer::TaskPoolTaskHandle
source · pub struct TaskPoolTaskHandle {
handle: NonNull<c_void>,
task_pool: Option<TaskPool>,
}
Expand description
An opaque handle for a task associated with a particular task pool.
Keeps a reference to the pool alive.
If the v1_20
feature is enabled, requests the task pool to dispose of the handle when it is
dropped. Otherwise, needs to be join
ed to avoid a leak.
Fields§
§handle: NonNull<c_void>
§task_pool: Option<TaskPool>
Trait Implementations§
source§impl Debug for TaskPoolTaskHandle
impl Debug for TaskPoolTaskHandle
source§impl Drop for TaskPoolTaskHandle
impl Drop for TaskPoolTaskHandle
source§impl Hash for TaskPoolTaskHandle
impl Hash for TaskPoolTaskHandle
source§impl Ord for TaskPoolTaskHandle
impl Ord for TaskPoolTaskHandle
source§fn cmp(&self, other: &TaskPoolTaskHandle) -> Ordering
fn cmp(&self, other: &TaskPoolTaskHandle) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for TaskPoolTaskHandle
impl PartialEq for TaskPoolTaskHandle
source§impl PartialOrd for TaskPoolTaskHandle
impl PartialOrd for TaskPoolTaskHandle
source§impl TaskHandle for TaskPoolTaskHandle
impl TaskHandle for TaskPoolTaskHandle
impl Eq for TaskPoolTaskHandle
impl StructuralPartialEq for TaskPoolTaskHandle
Auto Trait Implementations§
impl Freeze for TaskPoolTaskHandle
impl RefUnwindSafe for TaskPoolTaskHandle
impl !Send for TaskPoolTaskHandle
impl !Sync for TaskPoolTaskHandle
impl Unpin for TaskPoolTaskHandle
impl UnwindSafe for TaskPoolTaskHandle
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more