ScenarioExt

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 { ... }
}

Provided Methods§

Source

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

Source

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

Source

fn target_state(&self) -> 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

Source

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

Source

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

Available on crate feature v1_26 only.
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§