Trait explicit::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.

Object Safety§

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§