Created
July 28, 2013 07:22
-
-
Save auroranockert/6097804 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 trait EventGenerator { | |
pub fn dequeue_event(&mut self) -> (Result<uint>, Option<Event>); | |
pub fn enqueue_event(&mut self, event:Event) -> Result<uint>; | |
} | |
pub trait StreamSink : EventGenerator { | |
pub fn sink(&self) -> @Sink; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment