[][src]Trait gstreamer_rtsp_server::prelude::ElementExt

pub trait ElementExt: 'static {
    pub fn abort_state(&self);
pub fn add_pad<P>(&self, pad: &P) -> Result<(), BoolError>
    where
        P: IsA<Pad>
;
pub fn create_all_pads(&self);
pub fn foreach_pad<P>(&self, func: P) -> bool
    where
        P: FnMut(&Element, &Pad) -> bool
;
pub fn foreach_sink_pad<P>(&self, func: P) -> bool
    where
        P: FnMut(&Element, &Pad) -> bool
;
pub fn foreach_src_pad<P>(&self, func: P) -> bool
    where
        P: FnMut(&Element, &Pad) -> bool
;
pub fn get_base_time(&self) -> ClockTime;
pub fn get_bus(&self) -> Option<Bus>;
pub fn get_clock(&self) -> Option<Clock>;
pub fn get_compatible_pad<P>(
        &self,
        pad: &P,
        caps: Option<&Caps>
    ) -> Option<Pad>
    where
        P: IsA<Pad>
;
pub fn get_compatible_pad_template(
        &self,
        compattempl: &PadTemplate
    ) -> Option<PadTemplate>;
pub fn get_context(&self, context_type: &str) -> Option<Context>;
pub fn get_contexts(&self) -> Vec<Context, Global>;
pub fn get_factory(&self) -> Option<ElementFactory>;
pub fn get_request_pad(&self, name: &str) -> Option<Pad>;
pub fn get_start_time(&self) -> ClockTime;
pub fn get_static_pad(&self, name: &str) -> Option<Pad>;
pub fn is_locked_state(&self) -> bool;
pub fn link<P>(&self, dest: &P) -> Result<(), BoolError>
    where
        P: IsA<Element>
;
pub fn link_filtered<P>(
        &self,
        dest: &P,
        filter: Option<&Caps>
    ) -> Result<(), BoolError>
    where
        P: IsA<Element>
;
pub fn link_pads<P>(
        &self,
        srcpadname: Option<&str>,
        dest: &P,
        destpadname: Option<&str>
    ) -> Result<(), BoolError>
    where
        P: IsA<Element>
;
pub fn link_pads_filtered<P>(
        &self,
        srcpadname: Option<&str>,
        dest: &P,
        destpadname: Option<&str>,
        filter: Option<&Caps>
    ) -> Result<(), BoolError>
    where
        P: IsA<Element>
;
pub fn link_pads_full<P>(
        &self,
        srcpadname: Option<&str>,
        dest: &P,
        destpadname: Option<&str>,
        flags: PadLinkCheck
    ) -> Result<(), BoolError>
    where
        P: IsA<Element>
;
pub fn lost_state(&self);
pub fn no_more_pads(&self);
pub fn provide_clock(&self) -> Option<Clock>;
pub fn release_request_pad<P>(&self, pad: &P)
    where
        P: IsA<Pad>
;
pub fn remove_pad<P>(&self, pad: &P) -> Result<(), BoolError>
    where
        P: IsA<Pad>
;
pub fn request_pad(
        &self,
        templ: &PadTemplate,
        name: Option<&str>,
        caps: Option<&Caps>
    ) -> Option<Pad>;
pub fn set_base_time(&self, time: ClockTime);
pub fn set_bus(&self, bus: Option<&Bus>);
pub fn set_clock<P>(&self, clock: Option<&P>) -> Result<(), BoolError>
    where
        P: IsA<Clock>
;
pub fn set_context(&self, context: &Context);
pub fn set_locked_state(&self, locked_state: bool) -> bool;
pub fn set_start_time(&self, time: ClockTime);
pub fn sync_state_with_parent(&self) -> Result<(), BoolError>;
pub fn unlink<P>(&self, dest: &P)
    where
        P: IsA<Element>
;
pub fn unlink_pads<P>(&self, srcpadname: &str, dest: &P, destpadname: &str)
    where
        P: IsA<Element>
;
pub fn connect_no_more_pads<F>(&self, f: F) -> SignalHandlerId
    where
        F: 'static + Send + Sync + Fn(&Self)
;
pub fn connect_pad_added<F>(&self, f: F) -> SignalHandlerId
    where
        F: 'static + Send + Sync + Fn(&Self, &Pad)
;
pub fn connect_pad_removed<F>(&self, f: F) -> SignalHandlerId
    where
        F: 'static + Send + Sync + Fn(&Self, &Pad)
; }

Required methods

pub fn abort_state(&self)[src]

pub fn add_pad<P>(&self, pad: &P) -> Result<(), BoolError> where
    P: IsA<Pad>, 
[src]

pub fn create_all_pads(&self)[src]

pub fn foreach_pad<P>(&self, func: P) -> bool where
    P: FnMut(&Element, &Pad) -> bool
[src]

pub fn foreach_sink_pad<P>(&self, func: P) -> bool where
    P: FnMut(&Element, &Pad) -> bool
[src]

pub fn foreach_src_pad<P>(&self, func: P) -> bool where
    P: FnMut(&Element, &Pad) -> bool
[src]

pub fn get_base_time(&self) -> ClockTime[src]

pub fn get_bus(&self) -> Option<Bus>[src]

pub fn get_clock(&self) -> Option<Clock>[src]

pub fn get_compatible_pad<P>(&self, pad: &P, caps: Option<&Caps>) -> Option<Pad> where
    P: IsA<Pad>, 
[src]

pub fn get_compatible_pad_template(
    &self,
    compattempl: &PadTemplate
) -> Option<PadTemplate>
[src]

pub fn get_context(&self, context_type: &str) -> Option<Context>[src]

pub fn get_contexts(&self) -> Vec<Context, Global>[src]

pub fn get_factory(&self) -> Option<ElementFactory>[src]

pub fn get_request_pad(&self, name: &str) -> Option<Pad>[src]

pub fn get_start_time(&self) -> ClockTime[src]

pub fn get_static_pad(&self, name: &str) -> Option<Pad>[src]

pub fn is_locked_state(&self) -> bool[src]

pub fn lost_state(&self)[src]

pub fn no_more_pads(&self)[src]

pub fn provide_clock(&self) -> Option<Clock>[src]

pub fn release_request_pad<P>(&self, pad: &P) where
    P: IsA<Pad>, 
[src]

pub fn remove_pad<P>(&self, pad: &P) -> Result<(), BoolError> where
    P: IsA<Pad>, 
[src]

pub fn request_pad(
    &self,
    templ: &PadTemplate,
    name: Option<&str>,
    caps: Option<&Caps>
) -> Option<Pad>
[src]

pub fn set_base_time(&self, time: ClockTime)[src]

pub fn set_bus(&self, bus: Option<&Bus>)[src]

pub fn set_clock<P>(&self, clock: Option<&P>) -> Result<(), BoolError> where
    P: IsA<Clock>, 
[src]

pub fn set_context(&self, context: &Context)[src]

pub fn set_locked_state(&self, locked_state: bool) -> bool[src]

pub fn set_start_time(&self, time: ClockTime)[src]

pub fn sync_state_with_parent(&self) -> Result<(), BoolError>[src]

pub fn connect_no_more_pads<F>(&self, f: F) -> SignalHandlerId where
    F: 'static + Send + Sync + Fn(&Self), 
[src]

pub fn connect_pad_added<F>(&self, f: F) -> SignalHandlerId where
    F: 'static + Send + Sync + Fn(&Self, &Pad), 
[src]

pub fn connect_pad_removed<F>(&self, f: F) -> SignalHandlerId where
    F: 'static + Send + Sync + Fn(&Self, &Pad), 
[src]

Loading content...

Implementors

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

Loading content...