Last active
December 22, 2016 21:24
-
-
Save polachok/b4cc89b7062b4b724c90af41dd0f6019 to your computer and use it in GitHub Desktop.
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
impl AmqpClient { | |
fn call(&mut self, Request::Channel::Open) -> Future<Channel, AmqpError> | |
} | |
impl Channel { | |
fn declare_queue(&mut self, name: AsRef<str>) -> Future<Queue, AmqpError> | |
} | |
impl Queue { | |
fn consume(&mut self) -> Future<MessageStream, AmqpError> | |
} | |
// or | |
impl AmqpClient { | |
fn call(&mut self, Request::Channel::Open) -> Future<Channel, AmqpError> | |
fn call(&mut self, Request::Channel::DeclareQueue(Channel, AsRef<str>)) -> Future<Queue, AmqpError> | |
fn call(&mut self, Request::Queue::Consume(Queue)) -> Future<MessageStream, AmqpError> | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment