pub struct AlertPlugin<T, U>{ /* 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>
impl<T, U> AlertPluginInterface<T, U> for AlertPlugin<T, U>
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: RespoStatesTree,
options: AlertOptions,
on_read: U,
) -> Result<Self, String>
fn new( states: RespoStatesTree, 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>
impl<T, U> Clone for AlertPlugin<T, U>
Source§fn clone(&self) -> AlertPlugin<T, U>
fn clone(&self) -> AlertPlugin<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 moreAuto Trait Implementations§
impl<T, U> Freeze for AlertPlugin<T, U>where
U: Freeze,
impl<T, U> RefUnwindSafe for AlertPlugin<T, U>where
U: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, U> !Send for AlertPlugin<T, U>
impl<T, U> !Sync for AlertPlugin<T, U>
impl<T, U> Unpin for AlertPlugin<T, U>
impl<T, U> UnwindSafe for AlertPlugin<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