Struct gstreamer_app::app_sink::AppSinkCallbacksBuilder
source · pub struct AppSinkCallbacksBuilder { /* private fields */ }
Implementations§
source§impl AppSinkCallbacksBuilder
impl AppSinkCallbacksBuilder
pub fn eos<F: FnMut(&AppSink) + Send + 'static>(self, eos: F) -> Self
pub fn new_preroll<F: FnMut(&AppSink) -> Result<FlowSuccess, FlowError> + Send + 'static>( self, new_preroll: F ) -> Self
pub fn new_sample<F: FnMut(&AppSink) -> Result<FlowSuccess, FlowError> + Send + 'static>( self, new_sample: F ) -> Self
pub fn new_event<F: FnMut(&AppSink) -> bool + Send + 'static>( self, new_event: F ) -> Self
Available on crate feature
v1_20
only.pub fn propose_allocation<F: FnMut(&AppSink, &mut Allocation) -> bool + Send + 'static>( self, propose_allocation: F ) -> Self
Available on crate feature
v1_24
only.pub fn build(self) -> AppSinkCallbacks
Auto Trait Implementations§
impl !RefUnwindSafe for AppSinkCallbacksBuilder
impl Send for AppSinkCallbacksBuilder
impl !Sync for AppSinkCallbacksBuilder
impl Unpin for AppSinkCallbacksBuilder
impl !UnwindSafe for AppSinkCallbacksBuilder
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