Trait ModifyActions

Source
pub trait ModifyActions {
    // Required methods
    fn config(&mut self, config: AddConfig) -> &mut Self;
    fn start(&mut self, start: bool) -> &mut Self;
    fn order(&mut self, order: AddOrder) -> &mut Self;
    fn add(&mut self, actions: impl IntoBoxedActions) -> &mut Self;
    fn execute(&mut self) -> &mut Self;
    fn next(&mut self) -> &mut Self;
    fn cancel(&mut self) -> &mut Self;
    fn pause(&mut self) -> &mut Self;
    fn skip(&mut self, n: usize) -> &mut Self;
    fn clear(&mut self) -> &mut Self;
}
Expand description

Methods for modifying actions.

Required Methods§

Source

fn config(&mut self, config: AddConfig) -> &mut Self

Sets the current config for actions to be added.

Source

fn start(&mut self, start: bool) -> &mut Self

Sets the start field in the current config.

Default is true.

Source

fn order(&mut self, order: AddOrder) -> &mut Self

Sets the order field in the current config.

Default is AddOrder::Back.

Source

fn add(&mut self, actions: impl IntoBoxedActions) -> &mut Self

Adds one or more actions to the queue.

Source

fn execute(&mut self) -> &mut Self

Starts the next action in the queue, but only if there is no current action.

Source

fn next(&mut self) -> &mut Self

Starts the next action in the queue.

Current action is stopped as canceled.

Source

fn cancel(&mut self) -> &mut Self

Stops the current action as canceled.

To resume the action queue, call either execute or next.

Source

fn pause(&mut self) -> &mut Self

Stops the current action as paused.

To resume the action queue, call either execute or next.

Source

fn skip(&mut self, n: usize) -> &mut Self

Skips the next n actions in the queue.

Source

fn clear(&mut self) -> &mut Self

Clears the action queue.

Current action is stopped as canceled.

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§