pub enum RejectionEvent {
Rejected,
Handled,
}Expand description
What Host::promise_rejection reports (ECMAScript’s
HostPromiseRejectionTracker operations).
Variants§
Rejected
A promise was rejected with no handler attached ("reject").
Handled
A handler was attached to a promise already rejected without one
("handle").
Trait Implementations§
Source§impl Clone for RejectionEvent
impl Clone for RejectionEvent
Source§fn clone(&self) -> RejectionEvent
fn clone(&self) -> RejectionEvent
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 moreimpl Copy for RejectionEvent
Source§impl Debug for RejectionEvent
impl Debug for RejectionEvent
impl Eq for RejectionEvent
Source§impl PartialEq for RejectionEvent
impl PartialEq for RejectionEvent
impl StructuralPartialEq for RejectionEvent
Auto Trait Implementations§
impl Freeze for RejectionEvent
impl RefUnwindSafe for RejectionEvent
impl Send for RejectionEvent
impl Sync for RejectionEvent
impl Unpin for RejectionEvent
impl UnsafeUnpin for RejectionEvent
impl UnwindSafe for RejectionEvent
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