pub enum JavascriptPromiseState {
Pending,
Fulfilled(JavascriptValue),
Rejected(JavascriptException),
}Expand description
Promise state observed through a stable shared cell.
Variants§
Pending
No settlement has occurred.
Fulfilled(JavascriptValue)
Fulfilled with one value.
Rejected(JavascriptException)
Rejected with one exception.
Trait Implementations§
Source§impl Clone for JavascriptPromiseState
impl Clone for JavascriptPromiseState
Source§fn clone(&self) -> JavascriptPromiseState
fn clone(&self) -> JavascriptPromiseState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for JavascriptPromiseState
impl Debug for JavascriptPromiseState
Source§impl PartialEq for JavascriptPromiseState
impl PartialEq for JavascriptPromiseState
impl StructuralPartialEq for JavascriptPromiseState
Auto Trait Implementations§
impl Freeze for JavascriptPromiseState
impl RefUnwindSafe for JavascriptPromiseState
impl Send for JavascriptPromiseState
impl Sync for JavascriptPromiseState
impl Unpin for JavascriptPromiseState
impl UnsafeUnpin for JavascriptPromiseState
impl UnwindSafe for JavascriptPromiseState
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