pub trait PollExt<T> {
// Required method
fn is_ready_checked<TT: EqType<T>>(&self) -> bool;
}
Expand description
An extension trait adding functionality to Poll
.
Required Methods§
Sourcefn is_ready_checked<TT: EqType<T>>(&self) -> bool
fn is_ready_checked<TT: EqType<T>>(&self) -> bool
Like Poll::is_ready
, but the caller must provide the inner type.
This allows both the authors and the reviewers to check if information is being discarded unnoticed.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.