Trait gstreamer_validate::prelude::ScenarioExt

source ·
pub trait ScenarioExt:
    IsA<Scenario>
    + Sealed
    + '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) + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId { ... }
    fn connect_done<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { ... }
    fn connect_execute_on_idle_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId { ... }
    fn connect_handles_states_notify<F: Fn(&Self) + '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) + '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) + 'static>(&self, f: F) -> SignalHandlerId

Emitted once all actions have been executed

source

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

source

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

Object Safety§

This trait is not object safe.

Implementors§