pub struct ConfirmPlugin<T, U>{ /* private fields */ }Expand description
Popup a confirmation dialog, confirm to process next task
Trait Implementations§
Source§impl<T, U> Clone for ConfirmPlugin<T, U>
impl<T, U> Clone for ConfirmPlugin<T, U>
Source§fn clone(&self) -> ConfirmPlugin<T, U>
fn clone(&self) -> ConfirmPlugin<T, U>
Returns a duplicate 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>
impl<T, U> ConfirmPluginInterface<T, U> for ConfirmPlugin<T, U>
Source§fn show<V>(&self, dispatch: DispatchFn<T>, next_task: V) -> Result<(), String>
fn show<V>(&self, dispatch: DispatchFn<T>, next_task: V) -> Result<(), String>
to show dialog, second parameter is a callback when confirmed,
the callback is implemented dirty, it perform directly after confirmed
Source§fn new(
states: RespoStatesTree,
options: ConfirmOptions,
on_confirm: U,
) -> Result<Self, String>
fn new( states: RespoStatesTree, options: ConfirmOptions, on_confirm: U, ) -> Result<Self, String>
creates a new instance of confirm plugin, second parameter is a callback when confirmed
fn rc(&self) -> Rc<Self>
Auto Trait Implementations§
impl<T, U> Freeze for ConfirmPlugin<T, U>where
U: Freeze,
impl<T, U> RefUnwindSafe for ConfirmPlugin<T, U>where
U: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, U> !Send for ConfirmPlugin<T, U>
impl<T, U> !Sync for ConfirmPlugin<T, U>
impl<T, U> Unpin for ConfirmPlugin<T, U>
impl<T, U> UnwindSafe for ConfirmPlugin<T, U>where
U: UnwindSafe,
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more