Struct mio::IoEvent [] [src]

pub struct IoEvent {
    pub kind: EventSet,
    pub token: Token,
}

Fields

kind: EventSet token: Token

Methods

impl IoEvent
[src]

IoEvent 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 IoEvent objects are created by the OS-specific concrete Selector when they have events to report.

fn new(kind: EventSet, token: Token) -> IoEvent

Create a new IoEvent.

Trait Implementations

impl Debug for IoEvent
[src]

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

Formats the value using the given formatter.

impl PartialEq for IoEvent
[src]

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

This method tests for self and other values to be equal, and is used by ==. Read more

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

This method tests for !=.

impl Eq for IoEvent
[src]

impl Clone for IoEvent
[src]

fn clone(&self) -> IoEvent

Returns a copy of the value. Read more

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

Performs copy-assignment from source. Read more

impl Copy for IoEvent
[src]