Struct respo::dialog::AlertPlugin
source · pub struct AlertPlugin<T, U>where
T: Clone + Debug,
U: Fn(DispatchFn<T>) -> Result<(), String> + 'static,{ /* private fields */ }
Expand description
abstraction for Alert modal, new with AlertOption
,
just displaying a message, you read it, you close it
Trait Implementations§
source§impl<T, U> AlertPluginInterface<T, U> for AlertPlugin<T, U>where
T: Clone + Debug + RespoAction,
U: Fn(DispatchFn<T>) -> Result<(), String> + 'static + Copy,
impl<T, U> AlertPluginInterface<T, U> for AlertPlugin<T, U>where
T: Clone + Debug + RespoAction,
U: Fn(DispatchFn<T>) -> Result<(), String> + 'static + Copy,
source§fn show(
&self,
dispatch: DispatchFn<T>,
text: Option<String>
) -> Result<(), String>
fn show(
&self,
dispatch: DispatchFn<T>,
text: Option<String>
) -> Result<(), String>
to show alert, second parameter is a message that could overwrite the default message
source§fn new(
states: StatesTree,
options: AlertOptions,
on_read: U
) -> Result<Self, String>
fn new(
states: StatesTree,
options: AlertOptions,
on_read: U
) -> Result<Self, String>
show alert with options,
on_read
is the callback function when read button is clickedreturn referencial counted alert plugin
source§impl<T, U> Clone for AlertPlugin<T, U>where
T: Clone + Debug + Clone,
U: Fn(DispatchFn<T>) -> Result<(), String> + 'static + Clone,
impl<T, U> Clone for AlertPlugin<T, U>where
T: Clone + Debug + Clone,
U: Fn(DispatchFn<T>) -> Result<(), String> + 'static + Clone,
source§fn clone(&self) -> AlertPlugin<T, U>
fn clone(&self) -> AlertPlugin<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 more