Trait gstreamer::prelude::ElementExt[][src]

pub trait ElementExt {
    fn abort_state(&self);
fn add_pad<P: IsA<Pad>>(&self, pad: &P) -> Result<(), BoolError>;
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: IsA<Pad>, Q: Into<Option<&'a Caps>>>(
        &self,
        pad: &P,
        caps: Q
    ) -> Option<Pad>;
fn get_compatible_pad_template(
        &self,
        compattempl: &PadTemplate
    ) -> Option<PadTemplate>;
fn get_context(&self, context_type: &str) -> Option<Context>;
fn get_contexts(&self) -> Vec<Context>;
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: IsA<Element>>(&self, dest: &P) -> Result<(), BoolError>;
fn link_filtered<'a, P: IsA<Element>, Q: Into<Option<&'a Caps>>>(
        &self,
        dest: &P,
        filter: Q
    ) -> Result<(), BoolError>;
fn link_pads<'a, 'b, P: Into<Option<&'a str>>, Q: IsA<Element>, R: Into<Option<&'b str>>>(
        &self,
        srcpadname: P,
        dest: &Q,
        destpadname: R
    ) -> Result<(), BoolError>;
fn link_pads_filtered<'a, 'b, 'c, P: Into<Option<&'a str>>, Q: IsA<Element>, R: Into<Option<&'b str>>, S: Into<Option<&'c Caps>>>(
        &self,
        srcpadname: P,
        dest: &Q,
        destpadname: R,
        filter: S
    ) -> Result<(), BoolError>;
fn link_pads_full<'a, 'b, P: Into<Option<&'a str>>, Q: IsA<Element>, R: Into<Option<&'b str>>>(
        &self,
        srcpadname: P,
        dest: &Q,
        destpadname: R,
        flags: PadLinkCheck
    ) -> Result<(), BoolError>;
fn lost_state(&self);
fn no_more_pads(&self);
fn post_message(&self, message: &Message) -> Result<(), BoolError>;
fn provide_clock(&self) -> Option<Clock>;
fn release_request_pad<P: IsA<Pad>>(&self, pad: &P);
fn remove_pad<P: IsA<Pad>>(&self, pad: &P) -> Result<(), BoolError>;
fn request_pad<'a, 'b, P: Into<Option<&'a str>>, Q: Into<Option<&'b Caps>>>(
        &self,
        templ: &PadTemplate,
        name: P,
        caps: Q
    ) -> Option<Pad>;
fn set_base_time(&self, time: ClockTime);
fn set_bus<'a, P: Into<Option<&'a Bus>>>(&self, bus: P);
fn set_clock<'a, P: IsA<Clock> + 'a, Q: Into<Option<&'a P>>>(
        &self,
        clock: Q
    ) -> Result<(), BoolError>;
fn set_context(&self, context: &Context);
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: IsA<Element>>(&self, dest: &P);
fn unlink_pads<P: IsA<Element>>(
        &self,
        srcpadname: &str,
        dest: &P,
        destpadname: &str
    );
fn connect_no_more_pads<F: Fn(&Self) + Send + Sync + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_pad_added<F: Fn(&Self, &Pad) + Send + Sync + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_pad_removed<F: Fn(&Self, &Pad) + Send + Sync + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId; }

Required Methods

Important traits for Vec<u8>

Implementors