pub struct Reject<T, E>where
E: PromiseRejection,{ /* private fields */ }Expand description
Rejects the Promise created by Promise::with_resolvers.
Cloning yields another handle to the same promise; any clone may settle it, and the first settlement wins.
Implementations§
Trait Implementations§
Source§impl<T, E> Clone for Reject<T, E>where
E: PromiseRejection,
impl<T, E> Clone for Reject<T, E>where
E: PromiseRejection,
Auto Trait Implementations§
impl<T, E> Freeze for Reject<T, E>
impl<T, E> RefUnwindSafe for Reject<T, E>
impl<T, E> Send for Reject<T, E>where
T: Send,
impl<T, E> Sync for Reject<T, E>where
T: Send,
impl<T, E> Unpin for Reject<T, E>
impl<T, E> UnsafeUnpin for Reject<T, E>
impl<T, E> UnwindSafe for Reject<T, E>
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