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 { ... }
}
Provided Methods§
sourcefn pipeline(&self) -> Option<Element>
fn pipeline(&self) -> Option<Element>
§Returns
The [gst::Pipeline
][crate::gst::Pipeline] the scenario is running
against
sourcefn target_state(&self) -> State
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
sourcefn connect_action_done<F: Fn(&Self, &Action) + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_action_done<F: Fn(&Self, &Action) + 'static>( &self, f: F, ) -> SignalHandlerId
sourcefn connect_done<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_done<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
Emitted once all actions have been executed
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
Object Safety§
This trait is not object safe.