Created
January 2, 2016 01:51
-
-
Save tailhook/f490951b2170d3e07e44 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| pub fn new(mut sock: S, seed: P::Seed, scope: &mut Scope<C>) | |
| -> Result<Self, Box<Error>> | |
| { | |
| try!(scope.register(&sock, | |
| EventSet::readable() | EventSet::writable(), PollOpt::edge())); | |
| // ... | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment