lapin-futures-native-tls
This library offers a nice integration of native-tls
with the lapin-futures
library.
It uses amq-protocol
URI parsing feature and adds the connect
and connect_cancellable
methods to AMQPUri
which will provide you with a lapin_futures::client::Client
and
optionally a lapin_futures::client::HeartbeatHandle
wrapped in a Future
.
It autodetects whether you're using amqp
or amqps
and opens either a raw TcpStream
or a TlsStream
using native-tls
as the SSL engine.
Connecting and opening a channel
extern crate env_logger;
extern crate futures;
extern crate lapin_futures_native_tls;
extern crate tokio;
use ;
use Future;
use ConfirmSelectOptions;
use AMQPConnectionNativeTlsExt;