mod poll_private { pub trait Sealed<T> { } }
pub trait IsntPollExt<T>: poll_private::Sealed<T> {
#[must_use]
fn is_not_ready(&self) -> bool;
#[must_use]
fn is_not_pending(&self) -> bool;
}
impl<T> poll_private::Sealed<T> for std::task::Poll<T> { }
impl<T> IsntPollExt<T> for std::task::Poll<T> {
#[inline]
fn is_not_ready(&self) -> bool {
!self.is_ready()
}
#[inline]
fn is_not_pending(&self) -> bool {
!self.is_pending()
}
}
mod waker_private { pub trait Sealed { } }
pub trait IsntWakerExt: waker_private::Sealed {
#[must_use]
fn not_will_wake(&self, other: &std::task::Waker) -> bool;
}
impl waker_private::Sealed for std::task::Waker { }
impl IsntWakerExt for std::task::Waker {
#[inline]
fn not_will_wake(&self, other: &std::task::Waker) -> bool {
!self.will_wake(other)
}
}