pub struct DelegateFutureFuture<'a, R>where
R: Send,{ /* private fields */ }
Expand description
This future runs a future on the GUI thread and returns its output.
Trait Implementations§
Source§impl<'a, R> Future for DelegateFutureFuture<'a, R>where
R: Send,
impl<'a, R> Future for DelegateFutureFuture<'a, R>where
R: Send,
Source§type Output = Result<R, DelegateError>
type Output = Result<R, DelegateError>
The type of value produced on completion.
impl<'a, R> Send for DelegateFutureFuture<'a, R>where
R: Send,
§Safety
DelegateFutureFuture
by itself is not send.
This is because of ApplicationHandle
.
However, because the closure only executes on the GUI thread,
and because this handle that is provided to the closure is something that
will only be sent with the closure to the GUI thread, this should be fine.
impl<'a, R> Unpin for DelegateFutureFuture<'a, R>where
R: Send,
Auto Trait Implementations§
impl<'a, R> Freeze for DelegateFutureFuture<'a, R>where
R: Freeze,
impl<'a, R> !RefUnwindSafe for DelegateFutureFuture<'a, R>
impl<'a, R> !Sync for DelegateFutureFuture<'a, R>
impl<'a, R> !UnwindSafe for DelegateFutureFuture<'a, R>
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