pub struct MessageDialogBuilder(/* private fields */);
Available on
desktop
and crate feature dialog
only.Expand description
A builder for message dialogs.
Implementations§
source§impl MessageDialogBuilder
impl MessageDialogBuilder
sourcepub fn new(title: impl AsRef<str>, message: impl AsRef<str>) -> Self
pub fn new(title: impl AsRef<str>, message: impl AsRef<str>) -> Self
Creates a new message dialog builder.
sourcepub fn parent<W: HasRawWindowHandle>(self, parent: &W) -> Self
pub fn parent<W: HasRawWindowHandle>(self, parent: &W) -> Self
Set the set of button that will be displayed on the dialog.
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.
Auto Trait Implementations§
impl Freeze for MessageDialogBuilder
impl RefUnwindSafe for MessageDialogBuilder
impl Send for MessageDialogBuilder
impl !Sync for MessageDialogBuilder
impl Unpin for MessageDialogBuilder
impl UnwindSafe for MessageDialogBuilder
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