virtual_mio

Trait InterestHandler

Source
pub trait InterestHandler:
    Send
    + Sync
    + Debug {
    // 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§