pub trait PadExt: 'static {
Show 45 methods
fn activate_mode(
&self,
mode: PadMode,
active: bool
) -> Result<(), BoolError>;
fn can_link(&self, sinkpad: &impl IsA<Pad>) -> bool;
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 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 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
fn check_reconfigure(&self) -> 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 pad_template(&self) -> Option<PadTemplate>
fn pad_template_caps(&self) -> Caps
fn parent_element(&self) -> Option<Element>
fn single_internal_link(&self) -> Option<Pad>
fn single_internal_link(&self) -> Option<Pad>
This is supported on crate feature
v1_18
only.fn task_state(&self) -> TaskState
fn task_state(&self) -> TaskState
This is supported on crate feature
v1_12
only.fn has_current_caps(&self) -> bool
fn is_blocked(&self) -> bool
fn is_blocking(&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>
This is supported on crate feature
v1_10
only.fn link_maybe_ghosting_full(
&self,
sink: &impl IsA<Pad>,
flags: PadLinkCheck
) -> Result<(), BoolError>
fn link_maybe_ghosting_full(
&self,
sink: &impl IsA<Pad>,
flags: PadLinkCheck
) -> Result<(), BoolError>
This is supported on crate feature
v1_10
only.