pub trait PadSrcHandler:
Clone
+ Send
+ Sync
+ 'static {
type ElementImpl: ElementImpl<Type: Send>;
// Provided methods
fn src_activate(
self,
pad: &Pad,
_imp: &Self::ElementImpl,
) -> Result<(), LoggableError> { ... }
fn src_activatemode(
self,
_pad: &Pad,
_imp: &Self::ElementImpl,
_mode: PadMode,
_active: bool,
) -> Result<(), LoggableError> { ... }
fn src_event(self, pad: &Pad, imp: &Self::ElementImpl, event: Event) -> bool { ... }
fn src_event_full(
self,
pad: &Pad,
imp: &Self::ElementImpl,
event: Event,
) -> Result<FlowSuccess, FlowError> { ... }
fn src_query(
self,
pad: &Pad,
imp: &Self::ElementImpl,
query: &mut QueryRef,
) -> bool { ... }
}Expand description
A trait to define handlers for PadSrc callbacks.
See the pad module documentation for a description of the model.
Required Associated Types§
type ElementImpl: ElementImpl<Type: Send>
Provided Methods§
fn src_activate( self, pad: &Pad, _imp: &Self::ElementImpl, ) -> Result<(), LoggableError>
fn src_activatemode( self, _pad: &Pad, _imp: &Self::ElementImpl, _mode: PadMode, _active: bool, ) -> Result<(), LoggableError>
fn src_event(self, pad: &Pad, imp: &Self::ElementImpl, event: Event) -> bool
fn src_event_full( self, pad: &Pad, imp: &Self::ElementImpl, event: Event, ) -> Result<FlowSuccess, FlowError>
fn src_query( self, pad: &Pad, imp: &Self::ElementImpl, query: &mut QueryRef, ) -> bool
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.