pub enum PromiseState {
Pending,
Resolved(Box<Value>),
Rejected(String),
}Expand description
State of a promise
Variants§
Trait Implementations§
Source§impl Clone for PromiseState
impl Clone for PromiseState
Source§fn clone(&self) -> PromiseState
fn clone(&self) -> PromiseState
Returns a duplicate of the value. Read more
1.0.0 · 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 PromiseState
impl Debug for PromiseState
Source§impl<'de> Deserialize<'de> for PromiseState
impl<'de> Deserialize<'de> for PromiseState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PromiseState
impl PartialEq for PromiseState
Source§impl Serialize for PromiseState
impl Serialize for PromiseState
impl StructuralPartialEq for PromiseState
Auto Trait Implementations§
impl Freeze for PromiseState
impl RefUnwindSafe for PromiseState
impl Send for PromiseState
impl Sync for PromiseState
impl Unpin for PromiseState
impl UnwindSafe for PromiseState
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