gstreamer::prelude

Trait PadExt

Source
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§

Source

fn activate_mode(&self, mode: PadMode, active: bool) -> Result<(), BoolError>

Source

fn chain(&self, buffer: Buffer) -> Result<FlowSuccess, FlowError>

Source

fn chain_list(&self, list: BufferList) -> Result<FlowSuccess, FlowError>

Source

fn check_reconfigure(&self) -> bool

Source

fn create_stream_id( &self, parent: &impl IsA<Element>, stream_id: Option<&str>, ) -> GString

Source

fn forward<P: FnMut(&Pad) -> bool>(&self, forward: P) -> bool

Source

fn allowed_caps(&self) -> Option<Caps>

Source

fn current_caps(&self) -> Option<Caps>

Source

fn direction(&self) -> PadDirection

Source

fn last_flow_result(&self) -> Result<FlowSuccess, FlowError>

Source

fn offset(&self) -> i64

Source

fn pad_template(&self) -> Option<PadTemplate>

Source

fn pad_template_caps(&self) -> Caps

Source

fn parent_element(&self) -> Option<Element>

Source

fn peer(&self) -> Option<Pad>

Source

fn stream(&self) -> Option<Stream>

Source

fn stream_id(&self) -> Option<GString>

Source

fn task_state(&self) -> TaskState

Source

fn has_current_caps(&self) -> bool

Source

fn is_active(&self) -> bool

Source

fn is_blocked(&self) -> bool

Source

fn is_blocking(&self) -> bool

Source

fn is_linked(&self) -> bool

Source

fn mark_reconfigure(&self)

Source

fn needs_reconfigure(&self) -> bool

Source

fn pause_task(&self) -> Result<(), BoolError>

Source

fn peer_query_accept_caps(&self, caps: &Caps) -> bool

Source

fn peer_query_caps(&self, filter: Option<&Caps>) -> Caps

Source

fn push(&self, buffer: Buffer) -> Result<FlowSuccess, FlowError>

Source

fn push_list(&self, list: BufferList) -> Result<FlowSuccess, FlowError>

Source

fn query_accept_caps(&self, caps: &Caps) -> bool

Source

fn query_caps(&self, filter: Option<&Caps>) -> Caps

Source

fn set_active(&self, active: bool) -> Result<(), BoolError>

Source

fn set_offset(&self, offset: i64)

Source

fn stop_task(&self) -> Result<(), BoolError>

Source

fn store_sticky_event(&self, event: &Event) -> Result<FlowSuccess, FlowError>

Source

fn use_fixed_caps(&self)

Source

fn connect_linked<F: Fn(&Self, &Pad) + Send + Sync + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_unlinked<F: Fn(&Self, &Pad) + Send + Sync + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_caps_notify<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_offset_notify<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F, ) -> SignalHandlerId

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.

Implementors§

Source§

impl<O: IsA<Pad>> PadExt for O