Trait gstreamer_base::prelude::PadExt [−][src]
pub trait PadExt {
fn activate_mode(
&self,
mode: PadMode,
active: bool
) -> Result<(), BoolError>;
fn can_link<P>(&self, sinkpad: &P) -> bool
where
P: IsA<Pad>;
fn check_reconfigure(&self) -> bool;
fn create_stream_id<'a, P, Q>(
&self,
parent: &P,
stream_id: Q
) -> Option<String>
where
P: IsA<Element>,
Q: Into<Option<&'a str>>;
fn get_allowed_caps(&self) -> Option<GstRc<CapsRef>>;
fn get_current_caps(&self) -> Option<GstRc<CapsRef>>;
fn get_direction(&self) -> PadDirection;
fn get_last_flow_return(&self) -> FlowReturn;
fn get_offset(&self) -> i64;
fn get_pad_template(&self) -> Option<PadTemplate>;
fn get_pad_template_caps(&self) -> Option<GstRc<CapsRef>>;
fn get_parent_element(&self) -> Option<Element>;
fn get_peer(&self) -> Option<Pad>;
fn get_sticky_event(
&self,
event_type: EventType,
idx: u32
) -> Option<GstRc<EventRef>>;
fn get_stream(&self) -> Option<Stream>;
fn get_stream_id(&self) -> Option<String>;
fn get_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>(&self, sinkpad: &P) -> PadLinkReturn
where
P: IsA<Pad>;
fn link_full<P>(&self, sinkpad: &P, flags: PadLinkCheck) -> PadLinkReturn
where
P: IsA<Pad>;
fn link_maybe_ghosting<P>(&self, sink: &P) -> Result<(), BoolError>
where
P: IsA<Pad>;
fn link_maybe_ghosting_full<P>(&self, sink: &P, flags: PadLinkCheck) -> bool
where
P: IsA<Pad>;
fn mark_reconfigure(&self);
fn needs_reconfigure(&self) -> bool;
fn pause_task(&self) -> Result<(), BoolError>;
fn peer_query_accept_caps(&self, caps: &GstRc<CapsRef>) -> bool;
fn peer_query_caps<'a, P>(&self, filter: P) -> Option<GstRc<CapsRef>>
where
P: Into<Option<&'a GstRc<CapsRef>>>;
fn query_accept_caps(&self, caps: &GstRc<CapsRef>) -> bool;
fn query_caps<'a, P>(&self, filter: P) -> Option<GstRc<CapsRef>>
where
P: Into<Option<&'a GstRc<CapsRef>>>;
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: &GstRc<EventRef>) -> FlowReturn;
fn unlink<P>(&self, sinkpad: &P) -> Result<(), BoolError>
where
P: IsA<Pad>;
fn use_fixed_caps(&self);
fn get_property_caps(&self) -> Option<GstRc<CapsRef>>;
fn get_property_template(&self) -> Option<PadTemplate>;
fn set_property_template(&self, template: Option<&PadTemplate>);
fn connect_linked<F>(&self, f: F) -> SignalHandlerId
where
F: 'static + Send + Sync + Fn(&Self, &Pad);
fn connect_unlinked<F>(&self, f: F) -> SignalHandlerId
where
F: 'static + Send + Sync + Fn(&Self, &Pad);
fn connect_property_caps_notify<F>(&self, f: F) -> SignalHandlerId
where
F: 'static + Send + Sync + Fn(&Self);
fn connect_property_direction_notify<F>(&self, f: F) -> SignalHandlerId
where
F: 'static + Send + Sync + Fn(&Self);
fn connect_property_offset_notify<F>(&self, f: F) -> SignalHandlerId
where
F: 'static + Send + Sync + Fn(&Self);
fn connect_property_template_notify<F>(&self, f: F) -> SignalHandlerId
where
F: 'static + Send + Sync + Fn(&Self);
}Required Methods
fn activate_mode(&self, mode: PadMode, active: bool) -> Result<(), BoolError>
fn can_link<P>(&self, sinkpad: &P) -> bool where
P: IsA<Pad>,
P: IsA<Pad>,
fn check_reconfigure(&self) -> bool
fn create_stream_id<'a, P, Q>(&self, parent: &P, stream_id: Q) -> Option<String> where
P: IsA<Element>,
Q: Into<Option<&'a str>>,
P: IsA<Element>,
Q: Into<Option<&'a str>>,
fn get_allowed_caps(&self) -> Option<GstRc<CapsRef>>
fn get_current_caps(&self) -> Option<GstRc<CapsRef>>
fn get_direction(&self) -> PadDirection
fn get_last_flow_return(&self) -> FlowReturn
fn get_offset(&self) -> i64
fn get_pad_template(&self) -> Option<PadTemplate>
fn get_pad_template_caps(&self) -> Option<GstRc<CapsRef>>
fn get_parent_element(&self) -> Option<Element>
fn get_peer(&self) -> Option<Pad>
fn get_sticky_event(
&self,
event_type: EventType,
idx: u32
) -> Option<GstRc<EventRef>>
&self,
event_type: EventType,
idx: u32
) -> Option<GstRc<EventRef>>
fn get_stream(&self) -> Option<Stream>
fn get_stream_id(&self) -> Option<String>
fn get_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>(&self, sinkpad: &P) -> PadLinkReturn where
P: IsA<Pad>,
P: IsA<Pad>,
fn link_full<P>(&self, sinkpad: &P, flags: PadLinkCheck) -> PadLinkReturn where
P: IsA<Pad>,
P: IsA<Pad>,
fn link_maybe_ghosting<P>(&self, sink: &P) -> Result<(), BoolError> where
P: IsA<Pad>,
P: IsA<Pad>,
fn link_maybe_ghosting_full<P>(&self, sink: &P, flags: PadLinkCheck) -> bool where
P: IsA<Pad>,
P: IsA<Pad>,
fn mark_reconfigure(&self)
fn needs_reconfigure(&self) -> bool
fn pause_task(&self) -> Result<(), BoolError>
fn peer_query_accept_caps(&self, caps: &GstRc<CapsRef>) -> bool
fn peer_query_caps<'a, P>(&self, filter: P) -> Option<GstRc<CapsRef>> where
P: Into<Option<&'a GstRc<CapsRef>>>,
P: Into<Option<&'a GstRc<CapsRef>>>,
fn query_accept_caps(&self, caps: &GstRc<CapsRef>) -> bool
fn query_caps<'a, P>(&self, filter: P) -> Option<GstRc<CapsRef>> where
P: Into<Option<&'a GstRc<CapsRef>>>,
P: Into<Option<&'a GstRc<CapsRef>>>,
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: &GstRc<EventRef>) -> FlowReturn
fn unlink<P>(&self, sinkpad: &P) -> Result<(), BoolError> where
P: IsA<Pad>,
P: IsA<Pad>,
fn use_fixed_caps(&self)
fn get_property_caps(&self) -> Option<GstRc<CapsRef>>
fn get_property_template(&self) -> Option<PadTemplate>
fn set_property_template(&self, template: Option<&PadTemplate>)
fn connect_linked<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Send + Sync + Fn(&Self, &Pad),
F: 'static + Send + Sync + Fn(&Self, &Pad),
fn connect_unlinked<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Send + Sync + Fn(&Self, &Pad),
F: 'static + Send + Sync + Fn(&Self, &Pad),
fn connect_property_caps_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Send + Sync + Fn(&Self),
F: 'static + Send + Sync + Fn(&Self),
fn connect_property_direction_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Send + Sync + Fn(&Self),
F: 'static + Send + Sync + Fn(&Self),
fn connect_property_offset_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Send + Sync + Fn(&Self),
F: 'static + Send + Sync + Fn(&Self),
fn connect_property_template_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Send + Sync + Fn(&Self),
F: 'static + Send + Sync + Fn(&Self),