pub enum PromiseStatus {
Pending,
Fulfilled(Value),
Rejected(Value),
}Expand description
Which of §27.2.1.2’s three states a promise is in.
Variants§
Pending
Neither settled: reactions queue up.
Fulfilled(Value)
Settled with a value, which no further settle may change.
Rejected(Value)
Settled with a reason.
Trait Implementations§
Source§impl Clone for PromiseStatus
impl Clone for PromiseStatus
Auto Trait Implementations§
impl !RefUnwindSafe for PromiseStatus
impl !Send for PromiseStatus
impl !Sync for PromiseStatus
impl !UnwindSafe for PromiseStatus
impl Forget for PromiseStatus
impl Freeze for PromiseStatus
impl Move for PromiseStatus
impl Unpin for PromiseStatus
impl UnsafeUnpin for PromiseStatuswhere
*const GcBox<JsString> is !null: UnsafeUnpin,
*const GcBox<JsObject> is !null: UnsafeUnpin,
*const GcBox<JsSymbol> is !null: UnsafeUnpin,
*const GcBox<BigInt> is !null: UnsafeUnpin,
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