pub struct AppExitReply(/* private fields */);Expand description
The answer to one request to exit, which the host made through
EmbedderClient::request_app_exit: Flutter’s reply
to System.requestAppExit. It is answered once; dropped unanswered, it answers
AppExitResponse::Exit, since an application that lets go of the question has nothing to
keep.
Implementations§
Source§impl AppExitReply
impl AppExitReply
Sourcepub fn new(send: impl FnOnce(AppExitResponse) + 'static) -> AppExitReply
pub fn new(send: impl FnOnce(AppExitResponse) + 'static) -> AppExitReply
A reply that hands its answer to send. The answer is given inside a call into the
client, so send may only post it to the host’s own loop, never call the client.
pub fn answer(self, response: AppExitResponse)
Trait Implementations§
Source§impl Debug for AppExitReply
impl Debug for AppExitReply
Source§impl Drop for AppExitReply
impl Drop for AppExitReply
Auto Trait Implementations§
impl !RefUnwindSafe for AppExitReply
impl !Send for AppExitReply
impl !Sync for AppExitReply
impl !UnwindSafe for AppExitReply
impl Freeze for AppExitReply
impl Unpin for AppExitReply
impl UnsafeUnpin for AppExitReply
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