Function amqpr_api::basic::publish::publish [] [src]

pub fn publish<S>(channel_id: u16, socket: S, item: PublishItem) -> Published<S> where
    S: Sink<SinkItem = Frame>, 

Publish an item to AMQP server. If you want to publish a lot number of items, please consider to use publish_sink function. Returned item is Future which will be completed when finish to send.