Struct gstreamer::task::TaskBuilder
source · pub struct TaskBuilder<F: FnMut(&Task) + Send + 'static> { /* private fields */ }
Implementations§
source§impl<F: FnMut(&Task) + Send + 'static> TaskBuilder<F>
impl<F: FnMut(&Task) + Send + 'static> TaskBuilder<F>
pub fn enter_callback<E: FnMut(&Task) + Send + 'static>( self, enter_callback: E, ) -> Self
pub fn enter_callback_if<E: FnMut(&Task) + Send + 'static>( self, enter_callback: E, predicate: bool, ) -> Self
pub fn enter_callback_if_some<E: FnMut(&Task) + Send + 'static>( self, enter_callback: Option<E>, ) -> Self
pub fn leave_callback<E: FnMut(&Task) + Send + 'static>( self, leave_callback: E, ) -> Self
pub fn leave_callback_if<E: FnMut(&Task) + Send + 'static>( self, leave_callback: E, predicate: bool, ) -> Self
pub fn leave_callback_if_some<E: FnMut(&Task) + Send + 'static>( self, leave_callback: Option<E>, ) -> Self
pub fn lock(self, lock: &TaskLock) -> Self
pub fn lock_if(self, lock: &TaskLock, predicate: bool) -> Self
pub fn lock_if_some(self, lock: Option<&TaskLock>) -> Self
pub fn build(self) -> Task
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