//! AMQP responses.
//!
//! Any type that implements [`Respond`] can be used as the return type of a handler.
use fmt;
use Message;
/// A trait for types that may produce responses.
///
/// This really just means they can be converted into a byte-stream.
/// However, the type must also be able to be displayed for debugging purposes
/// and be sent across threads during processing.
/// This impl ensures that protobuf messages can be used as the return type of handlers.