ps-promise 0.1.0-17

Promise-like owned futures
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::WrappedPromiseRejection;

impl<E> PartialEq for WrappedPromiseRejection<E>
where
    E: PartialEq + Send + 'static,
{
    fn eq(&self, other: &Self) -> bool {
        match (self, other) {
            (Self::AlreadyConsumed, Self::AlreadyConsumed) => true,
            (Self::Rejected(a), Self::Rejected(b)) => a == b,
            _ => false,
        }
    }
}