Trait gstreamer::prelude::PadExt[][src]

pub trait PadExt: 'static {
Show 46 methods fn activate_mode(
        &self,
        mode: PadMode,
        active: bool
    ) -> Result<(), BoolError>;
fn can_link<P: IsA<Pad>>(&self, sinkpad: &P) -> bool;
fn check_reconfigure(&self) -> bool;
fn create_stream_id<P: IsA<Element>>(
        &self,
        parent: &P,
        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 sticky_event(&self, event_type: EventType, idx: u32) -> Option<Event>;
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<P: IsA<Pad>>(
        &self,
        sinkpad: &P
    ) -> Result<PadLinkSuccess, PadLinkError>;
fn link_full<P: IsA<Pad>>(
        &self,
        sinkpad: &P,
        flags: PadLinkCheck
    ) -> Result<PadLinkSuccess, PadLinkError>;
fn link_maybe_ghosting<P: IsA<Pad>>(
        &self,
        sink: &P
    ) -> Result<(), BoolError>;
fn link_maybe_ghosting_full<P: IsA<Pad>>(
        &self,
        sink: &P,
        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 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<P: IsA<Pad>>(&self, sinkpad: &P) -> Result<(), BoolError>;
fn use_fixed_caps(&self);
fn caps(&self) -> Option<Caps>;
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;
}

Required methods

This is supported on crate feature v1_18 only.
This is supported on crate feature v1_10 only.
This is supported on crate feature v1_12 only.
This is supported on crate feature v1_10 only.
This is supported on crate feature v1_10 only.

Implementors