pub struct MessageBox { /* private fields */ }
Expand description
A message box builder.
Implementations§
Source§impl MessageBox
impl MessageBox
Sourcepub fn new(kind: MessageBoxKind) -> Self
pub fn new(kind: MessageBoxKind) -> Self
Constructs a message box builder from the kind.
Adds a button to the message box.
Sourcepub fn color_scheme(&mut self, scheme: Option<ColorScheme>) -> &mut Self
pub fn color_scheme(&mut self, scheme: Option<ColorScheme>) -> &mut Self
Sets the color scheme of the message box.
Trait Implementations§
Source§impl Clone for MessageBox
impl Clone for MessageBox
Source§fn clone(&self) -> MessageBox
fn clone(&self) -> MessageBox
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for MessageBox
impl RefUnwindSafe for MessageBox
impl Send for MessageBox
impl Sync for MessageBox
impl Unpin for MessageBox
impl UnwindSafe for MessageBox
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