pub struct MessageBox(/* private fields */);Expand description
Message box.
Implementations§
Source§impl MessageBox
impl MessageBox
Sourcepub fn new() -> Self
pub fn new() -> Self
Create MessageBox.
Sourcepub async fn show(
self,
parent: impl Into<MaybeBorrowedWindow<'_>>,
) -> Result<MessageBoxResponse>
pub async fn show( self, parent: impl Into<MaybeBorrowedWindow<'_>>, ) -> Result<MessageBoxResponse>
Show message box.
Sourcepub fn instruction(self, instr: impl AsRef<str>) -> Self
pub fn instruction(self, instr: impl AsRef<str>) -> Self
Optional instruction title.
Sourcepub fn style(self, style: MessageBoxStyle) -> Self
pub fn style(self, style: MessageBoxStyle) -> Self
Style.
Pre-defined buttons.
Add a custom button.
Set custom buttons.
Trait Implementations§
Source§impl Clone for MessageBox
impl Clone for MessageBox
Source§fn clone(&self) -> MessageBox
fn clone(&self) -> MessageBox
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 Debug for MessageBox
impl Debug for MessageBox
Source§impl Default for MessageBox
impl Default for MessageBox
Source§fn default() -> MessageBox
fn default() -> MessageBox
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MessageBox
impl RefUnwindSafe for MessageBox
impl Send for MessageBox
impl Sync for MessageBox
impl Unpin for MessageBox
impl UnsafeUnpin for MessageBox
impl UnwindSafe for MessageBox
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