explicit

Trait PollExt

Source
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§

Source

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.

Implementations on Foreign Types§

Source§

impl<T> PollExt<T> for Poll<T>

Source§

fn is_ready_checked<TT: EqType<T>>(&self) -> bool

Implementors§