Struct rfd::AsyncMessageDialog
source · [−]pub struct AsyncMessageDialog(_);
Expand description
Asynchronous Message Dialog. Supported platforms:
- Windows
- macOS
- Linux (GTK only)
- WASM
Implementations
sourceimpl AsyncMessageDialog
impl AsyncMessageDialog
pub fn new() -> Self
sourcepub fn set_level(self, level: MessageLevel) -> Self
pub fn set_level(self, level: MessageLevel) -> Self
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.
sourcepub fn set_description(self, text: &str) -> Self
pub fn set_description(self, text: &str) -> Self
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 singleOk
buttonOkCancel
dialog, will display 2 buttons ok and cancel.YesNo
dialog, will display 2 buttons yes and no.
sourcepub fn set_parent<W: HasRawWindowHandle>(self, parent: &W) -> Self
pub fn set_parent<W: HasRawWindowHandle>(self, parent: &W) -> Self
Set parent windows explicitly (optional)
Suported in: macos
and windows
Trait Implementations
sourceimpl Clone for AsyncMessageDialog
impl Clone for AsyncMessageDialog
sourcefn clone(&self) -> AsyncMessageDialog
fn clone(&self) -> AsyncMessageDialog
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for AsyncMessageDialog
impl Debug for AsyncMessageDialog
sourceimpl Default for AsyncMessageDialog
impl Default for AsyncMessageDialog
sourcefn default() -> AsyncMessageDialog
fn default() -> AsyncMessageDialog
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for AsyncMessageDialog
impl Send for AsyncMessageDialog
impl !Sync for AsyncMessageDialog
impl Unpin for AsyncMessageDialog
impl UnwindSafe for AsyncMessageDialog
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more