pub struct AppSrcCallbacksBuilder { /* private fields */ }Implementations§
Source§impl AppSrcCallbacksBuilder
 
impl AppSrcCallbacksBuilder
pub fn need_data<F: FnMut(&AppSrc, u32) + Send + 'static>( self, need_data: F, ) -> Self
pub fn need_data_if<F: FnMut(&AppSrc, u32) + Send + 'static>( self, need_data: F, predicate: bool, ) -> Self
pub fn need_data_if_some<F: FnMut(&AppSrc, u32) + Send + 'static>( self, need_data: Option<F>, ) -> Self
pub fn enough_data<F: Fn(&AppSrc) + Send + Sync + 'static>( self, enough_data: F, ) -> Self
pub fn enough_data_if<F: Fn(&AppSrc) + Send + Sync + 'static>( self, enough_data: F, predicate: bool, ) -> Self
pub fn enough_data_if_some<F: Fn(&AppSrc) + Send + Sync + 'static>( self, enough_data: Option<F>, ) -> Self
pub fn seek_data<F: Fn(&AppSrc, u64) -> bool + Send + Sync + 'static>( self, seek_data: F, ) -> Self
pub fn seek_data_if<F: Fn(&AppSrc, u64) -> bool + Send + Sync + 'static>( self, seek_data: F, predicate: bool, ) -> Self
pub fn seek_data_if_some<F: Fn(&AppSrc, u64) -> bool + Send + Sync + 'static>( self, seek_data: Option<F>, ) -> Self
pub fn build(self) -> AppSrcCallbacks
Auto Trait Implementations§
impl Freeze for AppSrcCallbacksBuilder
impl !RefUnwindSafe for AppSrcCallbacksBuilder
impl Send for AppSrcCallbacksBuilder
impl !Sync for AppSrcCallbacksBuilder
impl Unpin for AppSrcCallbacksBuilder
impl !UnwindSafe for AppSrcCallbacksBuilder
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