Trait split_channel::OsPoll

source ·
pub trait OsPoll: Send + Sync {
    // Required methods
    fn new_thread(&self) -> ThreadState;
    fn insert(&self, fd: RawFd) -> Result<(), Error>;
    fn poll(
        &self,
        ts: &mut ThreadState,
        timeout_ms: i32
    ) -> Result<Option<(RawFd, u32)>, Error>;
}

Required Methods§

source

fn new_thread(&self) -> ThreadState

source

fn insert(&self, fd: RawFd) -> Result<(), Error>

source

fn poll( &self, ts: &mut ThreadState, timeout_ms: i32 ) -> Result<Option<(RawFd, u32)>, Error>

Implementors§