Struct rfd::MessageDialog[][src]

pub struct MessageDialog { /* fields omitted */ }
Expand description

Implementations

Set level of a dialog

Depending on the system it can result in level specific icon to show up, the will inform user it message is a error, warning or just information.

Set title of a dialog

Set description of a dialog

Description is a content of a dialog

Set the set of button that will be displayed on the dialog

  • Ok dialog is a single Ok button
  • OkCancel dialog, will display 2 buttons ok and cancel.
  • YesNo dialog, will display 2 buttons yes and no.

Set parent windows explicitly (optional) Suported in: macos and windows

Shows a message dialog:

  • In Ok dialog, it will return true when OK was pressed
  • In OkCancel dialog, it will return true when OK was pressed
  • In YesNo dialog, it will return true when Yes was pressed

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. 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

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.