Struct dialog::Message

source ·
pub struct Message { /* private fields */ }
Expand description

A message box.

This dialog box displays a text and an optional title and has a single OK button. It does not produce any output.

Example

use dialog::DialogBox;

dialog::Message::new("The operation was successful.")
    .title("Success")
    .show()
    .expect("Could not display dialog box");

Implementations

Creates a new message box with the given text.

Sets the title of this message box.

This method returns a reference to self to enable chaining.

Trait Implementations

The type of the data returned by the dialog box.
Shows this dialog box using the given backend and returns the output.
Shows this dialog box using the default backend and returns the output. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.