Struct mio::Events [] [src]

pub struct Events { /* fields omitted */ }

A buffer for I/O events to get placed into, passed to Poll::poll.

This structure is normally re-used on each turn of the event loop and will contain any I/O events that happen during a poll. After a call to poll returns the various accessor methods on this structure can be used to iterate over the underlying events that ocurred.

Methods

impl Events
[src]

Create a net blank set of events capable of holding up to capacity events.

This parameter typically is an indicator on how many events can be returned each turn of the event loop, but it is not necessarily a hard limit across platforms.

Returns the idx-th event.

Returns None if idx is greater than the length of this event buffer.

Returns how many events this buffer contains.

Returns whether this buffer contains 0 events.

Trait Implementations

impl<'a> IntoIterator for &'a Events
[src]

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Creates an iterator from a value. Read more