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 { ... }
}
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) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_action_done<F: Fn(&Self, &Action) + Send + Sync + 'static>( &self, f: F, ) -> SignalHandlerId
Sourcefn connect_done<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_done<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F, ) -> SignalHandlerId
Emitted once all actions have been executed
Sourcefn connect_stopping<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_stopping<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F, ) -> SignalHandlerId
Emitted when the ‘stop’ action is fired
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
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.