pub struct AsyncPromise {
pub state: RefCell<PromiseState>,
pub task_id: Cell<u64>,
}Expand description
An async promise: represents a value that will be available in the future.
Fields§
§state: RefCell<PromiseState>§task_id: Cell<u64>Trait Implementations§
Source§impl Clone for AsyncPromise
impl Clone for AsyncPromise
Auto Trait Implementations§
impl !Freeze for AsyncPromise
impl !RefUnwindSafe for AsyncPromise
impl !Sync for AsyncPromise
impl Send for AsyncPromise
impl Unpin for AsyncPromise
impl UnsafeUnpin for AsyncPromise
impl UnwindSafe for AsyncPromise
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