pub struct MessageDialogBuilder<R: Runtime> { /* private fields */ }
Expand description
A builder for message dialogs.
Implementations§
Source§impl<R: Runtime> MessageDialogBuilder<R>
impl<R: Runtime> MessageDialogBuilder<R>
Sourcepub fn new(
dialog: Dialog<R>,
title: impl Into<String>,
message: impl Into<String>,
) -> Self
pub fn new( dialog: Dialog<R>, title: impl Into<String>, message: impl Into<String>, ) -> Self
Creates a new message dialog builder.
Sourcepub fn parent<W: HasWindowHandle + HasDisplayHandle>(self, parent: &W) -> Self
pub fn parent<W: HasWindowHandle + HasDisplayHandle>(self, parent: &W) -> Self
Set parent windows explicitly (optional)
Sets the dialog buttons.
Sourcepub fn kind(self, kind: MessageDialogKind) -> Self
pub fn kind(self, kind: MessageDialogKind) -> Self
Set type of a dialog.
Depending on the system it can result in type specific icon to show up, the will inform user it message is a error, warning or just information.
Sourcepub fn blocking_show(self) -> bool
pub fn blocking_show(self) -> bool
Shows a message dialog. This is a blocking operation, and should NOT be used when running on the main thread context.
Trait Implementations§
Source§impl<R: Runtime> From<MessageDialogBuilder<R>> for AsyncMessageDialog
impl<R: Runtime> From<MessageDialogBuilder<R>> for AsyncMessageDialog
Source§fn from(d: MessageDialogBuilder<R>) -> Self
fn from(d: MessageDialogBuilder<R>) -> Self
Converts to this type from the input type.
impl<R: Runtime> Send for MessageDialogBuilder<R>
Auto Trait Implementations§
impl<R> Freeze for MessageDialogBuilder<R>
impl<R> !RefUnwindSafe for MessageDialogBuilder<R>
impl<R> !Sync for MessageDialogBuilder<R>
impl<R> Unpin for MessageDialogBuilder<R>
impl<R> !UnwindSafe for MessageDialogBuilder<R>
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