Trait gstreamer::prelude::ElementExt

source ·
pub trait ElementExt:
    IsA<Element>
    + Sealed
    + 'static {
Show 40 methods // Provided methods fn abort_state(&self) { ... } fn add_pad(&self, pad: &impl IsA<Pad>) -> Result<(), BoolError> { ... } fn change_state( &self, transition: StateChange, ) -> Result<StateChangeSuccess, StateChangeError> { ... } fn continue_state( &self, ret: impl Into<StateChangeReturn>, ) -> Result<StateChangeSuccess, StateChangeError> { ... } fn create_all_pads(&self) { ... } fn foreach_pad<P: FnMut(&Element, &Pad) -> bool>(&self, func: P) -> bool { ... } fn foreach_sink_pad<P: FnMut(&Element, &Pad) -> bool>( &self, func: P, ) -> bool { ... } fn foreach_src_pad<P: FnMut(&Element, &Pad) -> bool>(&self, func: P) -> bool { ... } fn base_time(&self) -> Option<ClockTime> { ... } fn bus(&self) -> Option<Bus> { ... } fn clock(&self) -> Option<Clock> { ... } fn compatible_pad( &self, pad: &impl IsA<Pad>, caps: Option<&Caps>, ) -> Option<Pad> { ... } fn compatible_pad_template( &self, compattempl: &PadTemplate, ) -> Option<PadTemplate> { ... } fn context(&self, context_type: &str) -> Option<Context> { ... } fn contexts(&self) -> Vec<Context> { ... } fn factory(&self) -> Option<ElementFactory> { ... } fn start_time(&self) -> Option<ClockTime> { ... } fn state( &self, timeout: impl Into<Option<ClockTime>>, ) -> (Result<StateChangeSuccess, StateChangeError>, State, State) { ... } fn 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(&self, pad: &impl IsA<Pad>) { ... } fn remove_pad(&self, pad: &impl IsA<Pad>) -> Result<(), BoolError> { ... } fn request_pad( &self, templ: &PadTemplate, name: Option<&str>, caps: Option<&Caps>, ) -> Option<Pad> { ... } fn set_base_time(&self, time: ClockTime) { ... } fn set_bus(&self, bus: Option<&Bus>) { ... } fn set_clock( &self, clock: Option<&impl IsA<Clock>>, ) -> Result<(), BoolError> { ... } fn set_context(&self, context: &Context) { ... } fn set_locked_state(&self, locked_state: bool) -> bool { ... } fn set_start_time(&self, time: impl Into<Option<ClockTime>>) { ... } fn set_state( &self, state: State, ) -> Result<StateChangeSuccess, StateChangeError> { ... } fn sync_state_with_parent(&self) -> Result<(), BoolError> { ... } fn unlink(&self, dest: &impl IsA<Element>) { ... } fn unlink_pads( &self, srcpadname: &str, dest: &impl IsA<Element>, 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 { ... }
}

Provided Methods§

source

fn abort_state(&self)

source

fn add_pad(&self, pad: &impl IsA<Pad>) -> Result<(), BoolError>

source

fn change_state( &self, transition: StateChange, ) -> Result<StateChangeSuccess, StateChangeError>

source

fn continue_state( &self, ret: impl Into<StateChangeReturn>, ) -> Result<StateChangeSuccess, StateChangeError>

source

fn create_all_pads(&self)

source

fn foreach_pad<P: FnMut(&Element, &Pad) -> bool>(&self, func: P) -> bool

source

fn foreach_sink_pad<P: FnMut(&Element, &Pad) -> bool>(&self, func: P) -> bool

source

fn foreach_src_pad<P: FnMut(&Element, &Pad) -> bool>(&self, func: P) -> bool

source

fn base_time(&self) -> Option<ClockTime>

source

fn bus(&self) -> Option<Bus>

source

fn clock(&self) -> Option<Clock>

source

fn compatible_pad( &self, pad: &impl IsA<Pad>, caps: Option<&Caps>, ) -> Option<Pad>

source

fn compatible_pad_template( &self, compattempl: &PadTemplate, ) -> Option<PadTemplate>

source

fn context(&self, context_type: &str) -> Option<Context>

source

fn contexts(&self) -> Vec<Context>

source

fn factory(&self) -> Option<ElementFactory>

source

fn start_time(&self) -> Option<ClockTime>

source

fn state( &self, timeout: impl Into<Option<ClockTime>>, ) -> (Result<StateChangeSuccess, StateChangeError>, State, State)

source

fn static_pad(&self, name: &str) -> Option<Pad>

source

fn is_locked_state(&self) -> bool

source

fn lost_state(&self)

source

fn no_more_pads(&self)

source

fn post_message(&self, message: Message) -> Result<(), BoolError>

source

fn provide_clock(&self) -> Option<Clock>

source

fn release_request_pad(&self, pad: &impl IsA<Pad>)

source

fn remove_pad(&self, pad: &impl IsA<Pad>) -> Result<(), BoolError>

source

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

source

fn set_base_time(&self, time: ClockTime)

source

fn set_bus(&self, bus: Option<&Bus>)

source

fn set_clock(&self, clock: Option<&impl IsA<Clock>>) -> Result<(), BoolError>

source

fn set_context(&self, context: &Context)

source

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

source

fn set_start_time(&self, time: impl Into<Option<ClockTime>>)

source

fn set_state( &self, state: State, ) -> Result<StateChangeSuccess, StateChangeError>

source

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

source

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

source

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

source

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

Object Safety§

This trait is not object safe.

Implementors§