forked from tokio-rs/mio
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This helps to reflect that the goals of EventLoop are limited to implementing what an epoll loop would involve. This also frees up Reactor to be used as a higher level, more involved, abstraction.
- Loading branch information
1 parent
f38a7be
commit 3909056
Showing
10 changed files
with
124 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
use reactor::Reactor; | ||
use event_loop::EventLoop; | ||
use token::Token; | ||
|
||
#[allow(unused_variable)] | ||
pub trait Handler<T, M: Send> { | ||
fn readable(&mut self, reactor: &mut Reactor<T, M>, token: Token) { | ||
fn readable(&mut self, event_loop: &mut EventLoop<T, M>, token: Token) { | ||
} | ||
|
||
fn writable(&mut self, reactor: &mut Reactor<T, M>, token: Token) { | ||
fn writable(&mut self, event_loop: &mut EventLoop<T, M>, token: Token) { | ||
} | ||
|
||
fn notify(&mut self, reactor: &mut Reactor<T, M>, msg: M) { | ||
fn notify(&mut self, event_loop: &mut EventLoop<T, M>, msg: M) { | ||
} | ||
|
||
fn timeout(&mut self, reactor: &mut Reactor<T, M>, timeout: T) { | ||
fn timeout(&mut self, event_loop: &mut EventLoop<T, M>, timeout: T) { | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.