[][src]Trait gstreamer::subclass::prelude::ElementImplExt

pub trait ElementImplExt {
    fn parent_change_state(
        &self,
        element: &Element,
        transition: StateChange
    ) -> Result<StateChangeSuccess, StateChangeError>;
fn parent_request_new_pad(
        &self,
        element: &Element,
        templ: &PadTemplate,
        name: Option<String>,
        caps: Option<&Caps>
    ) -> Option<Pad>;
fn parent_release_pad(&self, element: &Element, pad: &Pad);
fn parent_send_event(&self, element: &Element, event: Event) -> bool;
fn parent_query(&self, element: &Element, query: &mut QueryRef) -> bool;
fn parent_set_context(&self, element: &Element, context: &Context);
fn parent_set_clock(&self, element: &Element, clock: Option<&Clock>) -> bool;
fn parent_provide_clock(&self, element: &Element) -> Option<Clock>;
fn parent_post_message(&self, element: &Element, msg: Message) -> bool;
fn catch_panic<R, F: FnOnce(&Self) -> R, G: FnOnce() -> R, P: IsA<Element> + IsA<Object> + SetValue>(
        &self,
        element: &P,
        fallback: G,
        f: F
    ) -> R;
fn catch_panic_pad_function<R, F: FnOnce(&Self, &Element) -> R, G: FnOnce() -> R>(
        parent: Option<&Object>,
        fallback: G,
        f: F
    ) -> R; }

Required methods

fn parent_change_state(
    &self,
    element: &Element,
    transition: StateChange
) -> Result<StateChangeSuccess, StateChangeError>

fn parent_request_new_pad(
    &self,
    element: &Element,
    templ: &PadTemplate,
    name: Option<String>,
    caps: Option<&Caps>
) -> Option<Pad>

fn parent_release_pad(&self, element: &Element, pad: &Pad)

fn parent_send_event(&self, element: &Element, event: Event) -> bool

fn parent_query(&self, element: &Element, query: &mut QueryRef) -> bool

fn parent_set_context(&self, element: &Element, context: &Context)

fn parent_set_clock(&self, element: &Element, clock: Option<&Clock>) -> bool

fn parent_provide_clock(&self, element: &Element) -> Option<Clock>

fn parent_post_message(&self, element: &Element, msg: Message) -> bool

fn catch_panic<R, F: FnOnce(&Self) -> R, G: FnOnce() -> R, P: IsA<Element> + IsA<Object> + SetValue>(
    &self,
    element: &P,
    fallback: G,
    f: F
) -> R

fn catch_panic_pad_function<R, F: FnOnce(&Self, &Element) -> R, G: FnOnce() -> R>(
    parent: Option<&Object>,
    fallback: G,
    f: F
) -> R

Loading content...

Implementors

impl<T: ElementImpl + ObjectSubclass> ElementImplExt for T where
    T::Instance: PanicPoison
[src]

Loading content...