Struct browser_window::DelegateFuture [−][src]
pub struct DelegateFuture<'a, H, R> where
R: Send, { /* fields omitted */ }
Expand description
This future executes a closure on the GUI thread and returns the result.
Trait Implementations
impl<'a, H, R> Future for DelegateFuture<'a, H, R> where
H: HasAppHandle + Clone + 'static,
R: Send + 'static,
impl<'a, H, R> Future for DelegateFuture<'a, H, R> where
H: HasAppHandle + Clone + 'static,
R: Send + 'static,
Safety
DelegateFuture
by itself is not send.
This is because we keep a handle H
, which is not necessarily Send
.
However, because the closure only executes on the GUI thread,
and because the handle is only provided to the closure that will be executed on the GUI thread,
this should be fine.
Auto Trait Implementations
impl<'a, H, R> !RefUnwindSafe for DelegateFuture<'a, H, R>
impl<'a, H, R> !Sync for DelegateFuture<'a, H, R>
impl<'a, H, R> !UnwindSafe for DelegateFuture<'a, H, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (
into_future
)The output that the future will produce on completion.
type Future = F
type Future = F
🔬 This is a nightly-only experimental API. (
into_future
)Which kind of future are we turning this into?
🔬 This is a nightly-only experimental API. (
into_future
)Creates a future from a value.