pub struct Resolve<T> { /* private fields */ }
Expand description
Implementations§
Source§impl<T> Resolve<T>
impl<T> Resolve<T>
Sourcepub fn into_resolve(self, value: T)
pub fn into_resolve(self, value: T)
Resolves the promise with the given value, consuming this Resolve
in the process.
This will panic if the promise has already been resolved.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Resolve<T>
impl<T> !RefUnwindSafe for Resolve<T>
impl<T> Send for Resolve<T>
impl<T> Sync for Resolve<T>
impl<T> Unpin for Resolve<T>
impl<T> !UnwindSafe for Resolve<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