Skip to content

Instantly share code, notes, and snippets.

@auroranockert
Created July 28, 2013 07:22
Show Gist options
  • Save auroranockert/6097804 to your computer and use it in GitHub Desktop.
Save auroranockert/6097804 to your computer and use it in GitHub Desktop.
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