pub struct WgpuFuture<T> { /* private fields */ }
Expand description
A future that can be awaited for once a callback completes. Created using AsyncDevice::do_async
.
Trait Implementations§
Source§impl<T> Future for WgpuFuture<T>
impl<T> Future for WgpuFuture<T>
Auto Trait Implementations§
impl<T> Freeze for WgpuFuture<T>
impl<T> !RefUnwindSafe for WgpuFuture<T>
impl<T> Send for WgpuFuture<T>where
T: Send,
impl<T> Sync for WgpuFuture<T>where
T: Send,
impl<T> Unpin for WgpuFuture<T>
impl<T> !UnwindSafe for WgpuFuture<T>
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