Struct gstreamer::task::TaskBuilder
source · pub struct TaskBuilder<F: FnMut(&Task) + Send + 'static> {
func: Box<(F, *mut GstTask)>,
lock: Option<TaskLock>,
enter_callback: Option<Box<dyn FnMut(&Task) + Send + 'static>>,
leave_callback: Option<Box<dyn FnMut(&Task) + Send + 'static>>,
}
Fields§
§func: Box<(F, *mut GstTask)>
§lock: Option<TaskLock>
§enter_callback: Option<Box<dyn FnMut(&Task) + Send + 'static>>
§leave_callback: Option<Box<dyn FnMut(&Task) + Send + 'static>>
Implementations§
Auto Trait Implementations§
impl<F> Freeze for TaskBuilder<F>
impl<F> !RefUnwindSafe for TaskBuilder<F>
impl<F> !Send for TaskBuilder<F>
impl<F> !Sync for TaskBuilder<F>
impl<F> Unpin for TaskBuilder<F>
impl<F> !UnwindSafe for TaskBuilder<F>
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