Struct respo::dialog::ConfirmPlugin
source · pub struct ConfirmPlugin<T, U>where
T: Clone + Debug,
U: Fn(DispatchFn<T>) -> Result<(), String> + 'static,{ /* private fields */ }
Expand description
Popup a confirmation dialog, confirm to process next task
Trait Implementations§
source§impl<T, U> Clone for ConfirmPlugin<T, U>where
T: Clone + Debug + Clone,
U: Fn(DispatchFn<T>) -> Result<(), String> + 'static + Clone,
impl<T, U> Clone for ConfirmPlugin<T, U>where
T: Clone + Debug + Clone,
U: Fn(DispatchFn<T>) -> Result<(), String> + 'static + Clone,
source§fn clone(&self) -> ConfirmPlugin<T, U>
fn clone(&self) -> ConfirmPlugin<T, U>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<T, U> ConfirmPluginInterface<T, U> for ConfirmPlugin<T, U>where
T: Clone + Debug + RespoAction,
U: Fn(DispatchFn<T>) -> Result<(), String> + 'static + Copy,
impl<T, U> ConfirmPluginInterface<T, U> for ConfirmPlugin<T, U>where
T: Clone + Debug + RespoAction,
U: Fn(DispatchFn<T>) -> Result<(), String> + 'static + Copy,
source§fn show<V>(&self, dispatch: DispatchFn<T>, next_task: V) -> Result<(), String>where
V: Fn() -> Result<(), String> + 'static,
fn show<V>(&self, dispatch: DispatchFn<T>, next_task: V) -> Result<(), String>where
V: Fn() -> Result<(), String> + 'static,
to show dialog, second parameter is a callback when confirmed,
the callback is implemented dirty, it perform directly after confirmed
source§fn new(
states: StatesTree,
options: ConfirmOptions,
on_confirm: U
) -> Result<Self, String>
fn new(
states: StatesTree,
options: ConfirmOptions,
on_confirm: U
) -> Result<Self, String>
creates a new instance of confirm plugin, second parameter is a callback when confirmed