pub struct Promise<T, V>where
T: FutureType<V>,{ /* private fields */ }
Expand description
A Promise is a type that is guaranteed to complete its underlying FutureType, even if it is dropped.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T, V> Freeze for Promise<T, V>where
T: Freeze,
impl<T, V> RefUnwindSafe for Promise<T, V>where
T: RefUnwindSafe,
V: RefUnwindSafe,
impl<T, V> Send for Promise<T, V>
impl<T, V> Sync for Promise<T, V>
impl<T, V> Unpin for Promise<T, V>
impl<T, V> UnwindSafe for Promise<T, V>where
T: UnwindSafe,
V: UnwindSafe,
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