pub struct MessageBox { /* private fields */ }Available on Windows only.
Implementations§
Source§impl MessageBox
impl MessageBox
pub fn new() -> Self
pub fn show( self, parent: Option<impl AsWindow>, ) -> Result<impl Future<Output = Result<MessageBoxResponse>> + 'static>
pub fn message(&mut self, msg: &str)
pub fn title(&mut self, title: &str)
pub fn instruction(&mut self, instr: &str)
pub fn style(&mut self, style: MessageBoxStyle)
Trait Implementations§
Source§impl Clone for MessageBox
impl Clone for MessageBox
Source§fn clone(&self) -> MessageBox
fn clone(&self) -> MessageBox
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MessageBox
impl Debug for MessageBox
Auto Trait Implementations§
impl Freeze for MessageBox
impl RefUnwindSafe for MessageBox
impl Send for MessageBox
impl Sync for MessageBox
impl Unpin for MessageBox
impl UnsafeUnpin 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