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§
Sourcefn config(&mut self, config: AddConfig) -> &mut Self
fn config(&mut self, config: AddConfig) -> &mut Self
Sets the current config
for actions to be added.
Sourcefn order(&mut self, order: AddOrder) -> &mut Self
fn order(&mut self, order: AddOrder) -> &mut Self
Sets the order
field in the current config
.
Default is AddOrder::Back
.
Sourcefn add(&mut self, actions: impl IntoBoxedActions) -> &mut Self
fn add(&mut self, actions: impl IntoBoxedActions) -> &mut Self
Adds one or more actions to the queue.
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.