Trait may::io::WaitIo

source ·
pub trait WaitIo {
    // Required methods
    fn reset_io(&self);
    fn wait_io(&self);
    fn waker(&self) -> WaitIoWaker;
}
Expand description

This is trait that can block on io events but doing nothing about io

Required Methods§

source

fn reset_io(&self)

reset the io before io operation

source

fn wait_io(&self)

block on read/write event

source

fn waker(&self) -> WaitIoWaker

wake up the coroutine that is waiting for io

Implementors§

source§

impl<T: AsIoData> WaitIo for T