Struct mio::Event [] [src]

pub struct Event {
    // some fields omitted
}

An readiness event returned by Poll.

Event represents the raw event that the OS-specific selector returned. An event can represent more than one kind (such as readable or writable) at a time.

These Event objects are created by the OS-specific concrete Selector when they have events to report.

Methods

impl Event

fn new(kind: Ready, token: Token) -> Event

Create a new Event.

fn kind(&self) -> Ready

fn token(&self) -> Token

Trait Implementations

Derived Implementations

impl Debug for Event

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl PartialEq for Event

fn eq(&self, __arg_0: &Event) -> bool

fn ne(&self, __arg_0: &Event) -> bool

impl Eq for Event

impl Clone for Event

fn clone(&self) -> Event

1.0.0fn clone_from(&mut self, source: &Self)

impl Copy for Event