pub trait InterestHandler: Send + Sync {
    // Required methods
    fn push_interest(&mut self, interest: InterestType);
    fn pop_interest(&mut self, interest: InterestType) -> bool;
    fn has_interest(&self, interest: InterestType) -> bool;
}

Required Methods§

source

fn push_interest(&mut self, interest: InterestType)

source

fn pop_interest(&mut self, interest: InterestType) -> bool

source

fn has_interest(&self, interest: InterestType) -> bool

Trait Implementations§

source§

impl From<&Context<'_>> for Box<dyn InterestHandler + Send + Sync>

source§

fn from(cx: &Context<'_>) -> Self

Converts to this type from the input type.
source§

impl From<&Waker> for Box<dyn InterestHandler + Send + Sync>

source§

fn from(waker: &Waker) -> Self

Converts to this type from the input type.

Implementors§