[][src]Trait gstreamer_check::prelude::ElementExt

pub trait ElementExt: 'static {
    fn abort_state(&self);
fn add_pad<P>(&self, pad: &P) -> Result<(), BoolError>
    where
        P: IsA<Pad>
;
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 Caps>>
;
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_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 Caps>>
;
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 Caps>>
;
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: &Message) -> 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 Caps>>
;
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: &Context);
fn set_locked_state(&self, locked_state: bool) -> bool;
fn set_start_time(&self, time: ClockTime);
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>, 

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 Caps>>, 

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_static_pad(&self, name: &str) -> Option<Pad>

fn is_locked_state(&self) -> bool

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>(&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 Caps>>, 

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: &Context)

fn set_locked_state(&self, locked_state: bool) -> bool

fn set_start_time(&self, time: ClockTime)

fn sync_state_with_parent(&self) -> Result<(), BoolError>

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), 

Loading content...

Implementors

impl<O> ElementExt for O where
    O: IsA<Element>, 
[src]

Loading content...