docs.rs failed to build vld-lapin-0.4.0
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:
vld-lapin-0.3.0
vld-lapin
Lapin (RabbitMQ) integration for vld.
Version features
lapin-2(default)lapin-3lapin-4
Overview
vld-lapin keeps one entrypoint:
impl_to_lapin!(channel)
After rebinding, channel becomes a validating wrapper:
- auto-conversion helpers:
publish,basic_get,decode_bytes,decode_delivery,decode_get - ack helpers:
ack_decode,nack_decode,reject_decode,ack_decode_get,nack_decode_get,reject_decode_get - all other native
lapin::Channelmethods remain available through deref
Installation
[]
= { = "0.2", = ["serialize"] }
= "0.2"
= "2"
= { = "1", = ["derive"] }
= { = "1", = ["rt-multi-thread", "macros"] }
Quick start
use ;
use *;
schema!
let evt = EventSchema ;
let conn = connect.await?;
let channel = conn.create_channel.await?;
impl_to_lapin!;
// Native method through deref.
channel
.basic_qos
.await?;
channel
.queue_declare
.await?;
channel
.publish
.await?;
if let Some = channel.basic_get.await?
# Ok::
Example
License
MIT