pub struct MessageBox { /* private fields */ }Expand description
A non-modal message box whose result arrives on a stream.
Implementations§
Source§impl MessageBox
impl MessageBox
Sourcepub fn new(
window: &Window,
title: impl Into<String>,
text: impl Into<String>,
buttons: MessageBoxButtons,
) -> Self
pub fn new( window: &Window, title: impl Into<String>, text: impl Into<String>, buttons: MessageBoxButtons, ) -> Self
Create a message box parented to window.
Sourcepub fn result(&self) -> EventStream<MessageBoxResult>
pub fn result(&self) -> EventStream<MessageBoxResult>
A stream that emits the closing result exactly once.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for MessageBox
impl !Send for MessageBox
impl !Sync for MessageBox
impl !UnwindSafe for MessageBox
impl Freeze for MessageBox
impl Unpin for MessageBox
impl UnsafeUnpin 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