docs.rs failed to build lapin-futures-0.8.1
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
lapin-futures-0.33.0
lapin-futures
This library offers a futures based API over the lapin-async library. It leverages the tokio-io and futures library, so you can use it with tokio-core, futures-cpupool or any other reactor.
The library is designed so it does not own the socket, so you can use any TCP, TLS or unix socket based stream.
Calls to the underlying stream are guarded by a mutex, so you could use one connection from multiple threads.
There's an example available using tokio-core.
Publishing a message
extern crate log;
extern crate amq_protocol;
extern crate futures;
extern crate tokio_core;
extern crate lapin_futures as lapin;
use FieldTable;
use Stream;
use Future;
use Core;
use TcpStream;
use ConnectionOptions;
use ;
Creating a consumer
extern crate log;
extern crate amq_protocol;
extern crate futures;
extern crate tokio_core;
extern crate lapin_futures as lapin;
use FieldTable;
use Stream;
use Future;
use Core;
use TcpStream;
use ConnectionOptions;
use ;