pub trait PadExt:
IsA<Pad>
+ Sealed
+ 'static {
Show 48 methods
// Provided methods
fn activate_mode(
&self,
mode: PadMode,
active: bool,
) -> Result<(), BoolError> { ... }
fn can_link(&self, sinkpad: &impl IsA<Pad>) -> bool { ... }
fn chain(&self, buffer: Buffer) -> Result<FlowSuccess, FlowError> { ... }
fn chain_list(&self, list: BufferList) -> Result<FlowSuccess, FlowError> { ... }
fn check_reconfigure(&self) -> bool { ... }
fn create_stream_id(
&self,
parent: &impl IsA<Element>,
stream_id: Option<&str>,
) -> GString { ... }
fn forward<P: FnMut(&Pad) -> bool>(&self, forward: P) -> bool { ... }
fn allowed_caps(&self) -> Option<Caps> { ... }
fn current_caps(&self) -> Option<Caps> { ... }
fn direction(&self) -> PadDirection { ... }
fn last_flow_result(&self) -> Result<FlowSuccess, FlowError> { ... }
fn offset(&self) -> i64 { ... }
fn pad_template(&self) -> Option<PadTemplate> { ... }
fn pad_template_caps(&self) -> Caps { ... }
fn parent_element(&self) -> Option<Element> { ... }
fn peer(&self) -> Option<Pad> { ... }
fn single_internal_link(&self) -> Option<Pad> { ... }
fn stream(&self) -> Option<Stream> { ... }
fn stream_id(&self) -> Option<GString> { ... }
fn task_state(&self) -> TaskState { ... }
fn has_current_caps(&self) -> bool { ... }
fn is_active(&self) -> bool { ... }
fn is_blocked(&self) -> bool { ... }
fn is_blocking(&self) -> bool { ... }
fn is_linked(&self) -> bool { ... }
fn link(
&self,
sinkpad: &impl IsA<Pad>,
) -> Result<PadLinkSuccess, PadLinkError> { ... }
fn link_full(
&self,
sinkpad: &impl IsA<Pad>,
flags: PadLinkCheck,
) -> Result<PadLinkSuccess, PadLinkError> { ... }
fn link_maybe_ghosting(&self, sink: &impl IsA<Pad>) -> Result<(), BoolError> { ... }
fn link_maybe_ghosting_full(
&self,
sink: &impl IsA<Pad>,
flags: PadLinkCheck,
) -> Result<(), BoolError> { ... }
fn mark_reconfigure(&self) { ... }
fn needs_reconfigure(&self) -> bool { ... }
fn pause_task(&self) -> Result<(), BoolError> { ... }
fn peer_query_accept_caps(&self, caps: &Caps) -> bool { ... }
fn peer_query_caps(&self, filter: Option<&Caps>) -> Caps { ... }
fn push(&self, buffer: Buffer) -> Result<FlowSuccess, FlowError> { ... }
fn push_list(&self, list: BufferList) -> Result<FlowSuccess, FlowError> { ... }
fn query_accept_caps(&self, caps: &Caps) -> bool { ... }
fn query_caps(&self, filter: Option<&Caps>) -> Caps { ... }
fn set_active(&self, active: bool) -> Result<(), BoolError> { ... }
fn set_offset(&self, offset: i64) { ... }
fn stop_task(&self) -> Result<(), BoolError> { ... }
fn store_sticky_event(
&self,
event: &Event,
) -> Result<FlowSuccess, FlowError> { ... }
fn unlink(&self, sinkpad: &impl IsA<Pad>) -> Result<(), BoolError> { ... }
fn use_fixed_caps(&self) { ... }
fn connect_linked<F: Fn(&Self, &Pad) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_unlinked<F: Fn(&Self, &Pad) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_caps_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_offset_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
}
Provided Methods§
fn activate_mode(&self, mode: PadMode, active: bool) -> Result<(), BoolError>
fn can_link(&self, sinkpad: &impl IsA<Pad>) -> bool
fn chain(&self, buffer: Buffer) -> Result<FlowSuccess, FlowError>
fn chain_list(&self, list: BufferList) -> Result<FlowSuccess, FlowError>
fn check_reconfigure(&self) -> bool
fn create_stream_id( &self, parent: &impl IsA<Element>, stream_id: Option<&str>, ) -> GString
fn forward<P: FnMut(&Pad) -> bool>(&self, forward: P) -> bool
fn allowed_caps(&self) -> Option<Caps>
fn current_caps(&self) -> Option<Caps>
fn direction(&self) -> PadDirection
fn last_flow_result(&self) -> Result<FlowSuccess, FlowError>
fn offset(&self) -> i64
fn pad_template(&self) -> Option<PadTemplate>
fn pad_template_caps(&self) -> Caps
fn parent_element(&self) -> Option<Element>
fn peer(&self) -> Option<Pad>
fn single_internal_link(&self) -> Option<Pad>
fn stream(&self) -> Option<Stream>
fn stream_id(&self) -> Option<GString>
fn task_state(&self) -> TaskState
fn has_current_caps(&self) -> bool
fn is_active(&self) -> bool
fn is_blocked(&self) -> bool
fn is_blocking(&self) -> bool
fn is_linked(&self) -> bool
fn link(&self, sinkpad: &impl IsA<Pad>) -> Result<PadLinkSuccess, PadLinkError>
fn link_full( &self, sinkpad: &impl IsA<Pad>, flags: PadLinkCheck, ) -> Result<PadLinkSuccess, PadLinkError>
fn link_maybe_ghosting(&self, sink: &impl IsA<Pad>) -> Result<(), BoolError>
fn link_maybe_ghosting_full( &self, sink: &impl IsA<Pad>, flags: PadLinkCheck, ) -> Result<(), BoolError>
fn mark_reconfigure(&self)
fn needs_reconfigure(&self) -> bool
fn pause_task(&self) -> Result<(), BoolError>
fn peer_query_accept_caps(&self, caps: &Caps) -> bool
fn peer_query_caps(&self, filter: Option<&Caps>) -> Caps
fn push(&self, buffer: Buffer) -> Result<FlowSuccess, FlowError>
fn push_list(&self, list: BufferList) -> Result<FlowSuccess, FlowError>
fn query_accept_caps(&self, caps: &Caps) -> bool
fn query_caps(&self, filter: Option<&Caps>) -> Caps
fn set_active(&self, active: bool) -> Result<(), BoolError>
fn set_offset(&self, offset: i64)
fn stop_task(&self) -> Result<(), BoolError>
fn store_sticky_event(&self, event: &Event) -> Result<FlowSuccess, FlowError>
fn unlink(&self, sinkpad: &impl IsA<Pad>) -> Result<(), BoolError>
fn use_fixed_caps(&self)
fn connect_linked<F: Fn(&Self, &Pad) + Send + Sync + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_unlinked<F: Fn(&Self, &Pad) + Send + Sync + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_caps_notify<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_offset_notify<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F, ) -> SignalHandlerId
Object Safety§
This trait is not object safe.