gstreamer_validate::prelude

Trait ScenarioExt

Source
pub trait ScenarioExt: IsA<Scenario> + 'static {
    // Provided methods
    fn actions(&self) -> Vec<Action> { ... }
    fn pipeline(&self) -> Option<Element> { ... }
    fn target_state(&self) -> State { ... }
    fn is_execute_on_idle(&self) -> bool { ... }
    fn set_execute_on_idle(&self, execute_on_idle: bool) { ... }
    fn is_handles_states(&self) -> bool { ... }
    fn connect_action_done<F: Fn(&Self, &Action) + Send + Sync + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId { ... }
    fn connect_done<F: Fn(&Self) + Send + Sync + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId { ... }
    fn connect_stopping<F: Fn(&Self) + Send + Sync + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId { ... }
    fn connect_execute_on_idle_notify<F: Fn(&Self) + Send + Sync + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId { ... }
    fn connect_handles_states_notify<F: Fn(&Self) + Send + Sync + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId { ... }
}
Expand description

Trait containing all Scenario methods.

§Implementors

Scenario

Provided Methods§

Source

fn actions(&self) -> Vec<Action>

Get remaining actions from self.

§Returns

A list of Action.

Source

fn pipeline(&self) -> Option<Element>

§Returns

The [gst::Pipeline][crate::gst::Pipeline] the scenario is running against

Source

fn target_state(&self) -> State

Get current target state from self.

§Returns

Current target state.

Source

fn is_execute_on_idle(&self) -> bool

Source

fn set_execute_on_idle(&self, execute_on_idle: bool)

Source

fn is_handles_states(&self) -> bool

Source

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

Emitted when an action is done.

§action

The Action that is done running

Source

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

Emitted once all actions have been executed

Source

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

Emitted when the ‘stop’ action is fired

Source

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

Source

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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§