Struct mio::Event
[−]
[src]
pub struct Event { /* 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
[src]
fn new(kind: Ready, token: Token) -> Event
Create a new Event.
fn kind(&self) -> Ready
fn token(&self) -> Token
Trait Implementations
impl Copy for Event
[src]
impl Clone for Event
[src]
fn clone(&self) -> Event
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 Eq for Event
[src]
impl PartialEq for Event
[src]
fn eq(&self, __arg_0: &Event) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Event) -> bool
This method tests for !=
.