Trait mioco::Evented [] [src]

pub trait Evented {
    unsafe fn select_add(&self, rw: RW);
}

Mioco event source.

All types used as asynchronous event sources implement this trait.

A generic implementation: MioAdapter implements this trait, wrapping native mio types (implementing mio::Evented trait).

Required Methods

Add event source to next select operation.

Use select! macro instead.

This is unsafe as the Select::wait() has to be called afterwards, and registered EventSource must not be send to different thread/coroutine before Select::wait().

Use select! macro instead.

Implementors