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
unsafe fn select_add(&self, rw: RW)
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
impl<R, EP> Evented for EP where
EP: EventedImpl<Raw = R>,
R: EventSourceTrait + 'static,