Trait gstreamer_base::prelude::ElementExt [−][src]
pub trait ElementExt { fn abort_state(&self); fn add_pad<P>(&self, pad: &P) -> Result<(), BoolError>
where
P: IsA<Pad>; fn change_state(&self, transition: StateChange) -> StateChangeReturn; fn continue_state(&self, ret: StateChangeReturn) -> StateChangeReturn; fn create_all_pads(&self); fn get_base_time(&self) -> ClockTime; fn get_bus(&self) -> Option<Bus>; fn get_clock(&self) -> Option<Clock>; fn get_compatible_pad<'a, P, Q>(&self, pad: &P, caps: Q) -> Option<Pad>
where
P: IsA<Pad>,
Q: Into<Option<&'a GstRc<CapsRef>>>; fn get_compatible_pad_template(
&self,
compattempl: &PadTemplate
) -> Option<PadTemplate>; fn get_context(&self, context_type: &str) -> Option<GstRc<ContextRef>>; fn get_contexts(&self) -> Vec<GstRc<ContextRef>>; fn get_factory(&self) -> Option<ElementFactory>; fn get_request_pad(&self, name: &str) -> Option<Pad>; fn get_start_time(&self) -> ClockTime; fn get_state(&self, timeout: ClockTime) -> (StateChangeReturn, State, State); fn get_static_pad(&self, name: &str) -> Option<Pad>; fn is_locked_state(&self) -> bool; fn link<P>(&self, dest: &P) -> Result<(), BoolError>
where
P: IsA<Element>; fn link_filtered<'a, P, Q>(
&self,
dest: &P,
filter: Q
) -> Result<(), BoolError>
where
P: IsA<Element>,
Q: Into<Option<&'a GstRc<CapsRef>>>; fn link_pads<'a, 'b, P, Q, R>(
&self,
srcpadname: P,
dest: &Q,
destpadname: R
) -> Result<(), BoolError>
where
P: Into<Option<&'a str>>,
Q: IsA<Element>,
R: Into<Option<&'b str>>; fn link_pads_filtered<'a, 'b, 'c, P, Q, R, S>(
&self,
srcpadname: P,
dest: &Q,
destpadname: R,
filter: S
) -> Result<(), BoolError>
where
P: Into<Option<&'a str>>,
Q: IsA<Element>,
R: Into<Option<&'b str>>,
S: Into<Option<&'c GstRc<CapsRef>>>; fn link_pads_full<'a, 'b, P, Q, R>(
&self,
srcpadname: P,
dest: &Q,
destpadname: R,
flags: PadLinkCheck
) -> Result<(), BoolError>
where
P: Into<Option<&'a str>>,
Q: IsA<Element>,
R: Into<Option<&'b str>>; fn lost_state(&self); fn no_more_pads(&self); fn post_message(&self, message: &GstRc<MessageRef>) -> Result<(), BoolError>; fn provide_clock(&self) -> Option<Clock>; fn release_request_pad<P>(&self, pad: &P)
where
P: IsA<Pad>; fn remove_pad<P>(&self, pad: &P) -> Result<(), BoolError>
where
P: IsA<Pad>; fn request_pad<'a, 'b, P, Q>(
&self,
templ: &PadTemplate,
name: P,
caps: Q
) -> Option<Pad>
where
P: Into<Option<&'a str>>,
Q: Into<Option<&'b GstRc<CapsRef>>>; fn set_base_time(&self, time: ClockTime); fn set_bus<'a, P>(&self, bus: P)
where
P: Into<Option<&'a Bus>>; fn set_clock<'a, P, Q>(&self, clock: Q) -> Result<(), BoolError>
where
P: 'a + IsA<Clock>,
Q: Into<Option<&'a P>>; fn set_context(&self, context: &GstRc<ContextRef>); fn set_locked_state(&self, locked_state: bool) -> bool; fn set_start_time(&self, time: ClockTime); fn set_state(&self, state: State) -> StateChangeReturn; fn sync_state_with_parent(&self) -> Result<(), BoolError>; fn unlink<P>(&self, dest: &P)
where
P: IsA<Element>; fn unlink_pads<P>(&self, srcpadname: &str, dest: &P, destpadname: &str)
where
P: IsA<Element>; fn connect_no_more_pads<F>(&self, f: F) -> SignalHandlerId
where
F: 'static + Send + Sync + Fn(&Self); fn connect_pad_added<F>(&self, f: F) -> SignalHandlerId
where
F: 'static + Send + Sync + Fn(&Self, &Pad); fn connect_pad_removed<F>(&self, f: F) -> SignalHandlerId
where
F: 'static + Send + Sync + Fn(&Self, &Pad); }
Required Methods
fn abort_state(&self)
fn add_pad<P>(&self, pad: &P) -> Result<(), BoolError> where
P: IsA<Pad>,
P: IsA<Pad>,
fn change_state(&self, transition: StateChange) -> StateChangeReturn
fn continue_state(&self, ret: StateChangeReturn) -> StateChangeReturn
fn create_all_pads(&self)
fn get_base_time(&self) -> ClockTime
fn get_bus(&self) -> Option<Bus>
fn get_clock(&self) -> Option<Clock>
fn get_compatible_pad<'a, P, Q>(&self, pad: &P, caps: Q) -> Option<Pad> where
P: IsA<Pad>,
Q: Into<Option<&'a GstRc<CapsRef>>>,
P: IsA<Pad>,
Q: Into<Option<&'a GstRc<CapsRef>>>,
fn get_compatible_pad_template(
&self,
compattempl: &PadTemplate
) -> Option<PadTemplate>
&self,
compattempl: &PadTemplate
) -> Option<PadTemplate>
fn get_context(&self, context_type: &str) -> Option<GstRc<ContextRef>>
fn get_contexts(&self) -> Vec<GstRc<ContextRef>>
fn get_factory(&self) -> Option<ElementFactory>
fn get_request_pad(&self, name: &str) -> Option<Pad>
fn get_start_time(&self) -> ClockTime
fn get_state(&self, timeout: ClockTime) -> (StateChangeReturn, State, State)
fn get_static_pad(&self, name: &str) -> Option<Pad>
fn is_locked_state(&self) -> bool
fn link<P>(&self, dest: &P) -> Result<(), BoolError> where
P: IsA<Element>,
P: IsA<Element>,
fn link_filtered<'a, P, Q>(&self, dest: &P, filter: Q) -> Result<(), BoolError> where
P: IsA<Element>,
Q: Into<Option<&'a GstRc<CapsRef>>>,
P: IsA<Element>,
Q: Into<Option<&'a GstRc<CapsRef>>>,
fn link_pads<'a, 'b, P, Q, R>(
&self,
srcpadname: P,
dest: &Q,
destpadname: R
) -> Result<(), BoolError> where
P: Into<Option<&'a str>>,
Q: IsA<Element>,
R: Into<Option<&'b str>>,
&self,
srcpadname: P,
dest: &Q,
destpadname: R
) -> Result<(), BoolError> where
P: Into<Option<&'a str>>,
Q: IsA<Element>,
R: Into<Option<&'b str>>,
fn link_pads_filtered<'a, 'b, 'c, P, Q, R, S>(
&self,
srcpadname: P,
dest: &Q,
destpadname: R,
filter: S
) -> Result<(), BoolError> where
P: Into<Option<&'a str>>,
Q: IsA<Element>,
R: Into<Option<&'b str>>,
S: Into<Option<&'c GstRc<CapsRef>>>,
&self,
srcpadname: P,
dest: &Q,
destpadname: R,
filter: S
) -> Result<(), BoolError> where
P: Into<Option<&'a str>>,
Q: IsA<Element>,
R: Into<Option<&'b str>>,
S: Into<Option<&'c GstRc<CapsRef>>>,
fn link_pads_full<'a, 'b, P, Q, R>(
&self,
srcpadname: P,
dest: &Q,
destpadname: R,
flags: PadLinkCheck
) -> Result<(), BoolError> where
P: Into<Option<&'a str>>,
Q: IsA<Element>,
R: Into<Option<&'b str>>,
&self,
srcpadname: P,
dest: &Q,
destpadname: R,
flags: PadLinkCheck
) -> Result<(), BoolError> where
P: Into<Option<&'a str>>,
Q: IsA<Element>,
R: Into<Option<&'b str>>,
fn lost_state(&self)
fn no_more_pads(&self)
fn post_message(&self, message: &GstRc<MessageRef>) -> Result<(), BoolError>
fn provide_clock(&self) -> Option<Clock>
fn release_request_pad<P>(&self, pad: &P) where
P: IsA<Pad>,
P: IsA<Pad>,
fn remove_pad<P>(&self, pad: &P) -> Result<(), BoolError> where
P: IsA<Pad>,
P: IsA<Pad>,
fn request_pad<'a, 'b, P, Q>(
&self,
templ: &PadTemplate,
name: P,
caps: Q
) -> Option<Pad> where
P: Into<Option<&'a str>>,
Q: Into<Option<&'b GstRc<CapsRef>>>,
&self,
templ: &PadTemplate,
name: P,
caps: Q
) -> Option<Pad> where
P: Into<Option<&'a str>>,
Q: Into<Option<&'b GstRc<CapsRef>>>,
fn set_base_time(&self, time: ClockTime)
fn set_bus<'a, P>(&self, bus: P) where
P: Into<Option<&'a Bus>>,
P: Into<Option<&'a Bus>>,
fn set_clock<'a, P, Q>(&self, clock: Q) -> Result<(), BoolError> where
P: 'a + IsA<Clock>,
Q: Into<Option<&'a P>>,
P: 'a + IsA<Clock>,
Q: Into<Option<&'a P>>,
fn set_context(&self, context: &GstRc<ContextRef>)
fn set_locked_state(&self, locked_state: bool) -> bool
fn set_start_time(&self, time: ClockTime)
fn set_state(&self, state: State) -> StateChangeReturn
fn sync_state_with_parent(&self) -> Result<(), BoolError>
fn unlink<P>(&self, dest: &P) where
P: IsA<Element>,
P: IsA<Element>,
fn unlink_pads<P>(&self, srcpadname: &str, dest: &P, destpadname: &str) where
P: IsA<Element>,
P: IsA<Element>,
fn connect_no_more_pads<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Send + Sync + Fn(&Self),
F: 'static + Send + Sync + Fn(&Self),
fn connect_pad_added<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Send + Sync + Fn(&Self, &Pad),
F: 'static + Send + Sync + Fn(&Self, &Pad),
fn connect_pad_removed<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Send + Sync + Fn(&Self, &Pad),
F: 'static + Send + Sync + Fn(&Self, &Pad),