pub enum WrappedPromiseRejection<E>{
AlreadyConsumed,
Rejected(E),
}Variants§
Trait Implementations§
Source§impl<E> Clone for WrappedPromiseRejection<E>
impl<E> Clone for WrappedPromiseRejection<E>
Source§fn clone(&self) -> WrappedPromiseRejection<E>
fn clone(&self) -> WrappedPromiseRejection<E>
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<E> Debug for WrappedPromiseRejection<E>
impl<E> Debug for WrappedPromiseRejection<E>
Source§impl<E> Display for WrappedPromiseRejection<E>
impl<E> Display for WrappedPromiseRejection<E>
Source§impl<E> Error for WrappedPromiseRejection<E>
impl<E> Error for WrappedPromiseRejection<E>
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl<E> From<E> for WrappedPromiseRejection<E>
impl<E> From<E> for WrappedPromiseRejection<E>
Source§impl<E> Hash for WrappedPromiseRejection<E>
impl<E> Hash for WrappedPromiseRejection<E>
Source§impl<E> Ord for WrappedPromiseRejection<E>
impl<E> Ord for WrappedPromiseRejection<E>
Source§fn cmp(&self, other: &WrappedPromiseRejection<E>) -> Ordering
fn cmp(&self, other: &WrappedPromiseRejection<E>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<E> PartialEq for WrappedPromiseRejection<E>
impl<E> PartialEq for WrappedPromiseRejection<E>
Source§impl<E> PartialOrd for WrappedPromiseRejection<E>
impl<E> PartialOrd for WrappedPromiseRejection<E>
Source§impl<E> PromiseRejection for WrappedPromiseRejection<E>
impl<E> PromiseRejection for WrappedPromiseRejection<E>
Source§fn already_consumed() -> Self
fn already_consumed() -> Self
This method should return the error variant representing this
Promise being consumed more than once.impl<E> Eq for WrappedPromiseRejection<E>
impl<E> StructuralPartialEq for WrappedPromiseRejection<E>
Auto Trait Implementations§
impl<E> Freeze for WrappedPromiseRejection<E>where
E: Freeze,
impl<E> RefUnwindSafe for WrappedPromiseRejection<E>where
E: RefUnwindSafe,
impl<E> Send for WrappedPromiseRejection<E>
impl<E> Sync for WrappedPromiseRejection<E>where
E: Sync,
impl<E> Unpin for WrappedPromiseRejection<E>
impl<E> UnsafeUnpin for WrappedPromiseRejection<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for WrappedPromiseRejection<E>where
E: UnwindSafe,
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