pub struct Answer<T> { /* private fields */ }Expand description
The answer the platform gives to a request (a dialog, an image’s size), awaited in a task.
Implementations§
Source§impl Answer<DialogReply>
impl Answer<DialogReply>
Sourcepub fn closer(&self) -> DialogCloser
pub fn closer(&self) -> DialogCloser
What closes the dialog this answer waits for, kept apart from the
answer (which a task usually takes): see DialogCloser.
Trait Implementations§
Auto Trait Implementations§
impl<T> !RefUnwindSafe for Answer<T>
impl<T> !Send for Answer<T>
impl<T> !Sync for Answer<T>
impl<T> !UnwindSafe for Answer<T>
impl<T> Forget for Answer<T>
impl<T> Freeze for Answer<T>
impl<T> Move for Answer<T>
impl<T> Unpin for Answer<T>
impl<T> UnsafeUnpin for Answer<T>where
*const RcInner<RefCell<Output<T>>> is !null: UnsafeUnpin,
PhantomData<RcInner<RefCell<Output<T>>>>: UnsafeUnpin,
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
Source§impl<F> IntoFuture for Fwhere
F: Future,
impl<F> IntoFuture for Fwhere
F: Future,
Source§type IntoFuture = F
type IntoFuture = F
Which kind of future are we turning this into?
Source§fn into_future(self) -> <F as IntoFuture>::IntoFuture
fn into_future(self) -> <F as IntoFuture>::IntoFuture
Creates a future from a value. Read more