Struct polling::Event [−][src]
Indicates that a file descriptor or socket can read or write without blocking.
Fields
key: usize
Key identifying the file descriptor or socket.
readable: bool
Can it do a read operation without blocking?
writable: bool
Can it do a write operation without blocking?
Implementations
impl Event
[src]
impl Event
[src]pub fn all(key: usize) -> Event
[src]
All kinds of events (readable and writable).
Equivalent to: Event { key, readable: true, writable: true }
pub fn readable(key: usize) -> Event
[src]
Only the readable event.
Equivalent to: Event { key, readable: true, writable: false }
pub fn writable(key: usize) -> Event
[src]
Only the writable event.
Equivalent to: Event { key, readable: false, writable: true }
pub fn none(key: usize) -> Event
[src]
No events.
Equivalent to: Event { key, readable: false, writable: false }