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.
stomp-rs

stomp-rs provides a full STOMP 1.2 client implementation for the Rust programming language. This allows programs written in Rust to interact with message queueing services like ActiveMQ, RabbitMQ, HornetQ and OpenMQ.
- Connect
- Subscribe
- Send
- Acknowledge (Auto/Client/ClientIndividual)
- Transactions
- Receipts
- Disconnect
- Heartbeats
The APIs for stomp-rs are not yet stable and are likely to fluctuate before v1.0.
Examples
Connect / Subscribe / Send
extern crate stomp;
use Frame;
use Ack;
Session Configuration
use Header;
use ;
// ...
let mut session = match session
.with
.with
.with
.start ;
Message Configuration
use ;
// ...
session.message
.with
.with
.with
Subscription Configuration
use AckMode;
use Header;
use Frame;
// ...
let id = session.subscription
.with
.with
.start;
Transactions
match session.begin_transaction ;
Handling RECEIPT frames
If you include a ReceiptHandler in your message, the client will request that the server send a receipt when it has successfully processed the frame.
session.message
.with
.send;
Handling ERROR frames
To handle errors, you can register an error handler
session.on_error;
Manipulating inbound and outbound frames
In some cases, brokers impose rules or restrictions which may make it necessary
directly modify frames in ways that are not conveniently exposed by the API. In such
cases, you can use the on_before_send and on_before_receive methods to specify a
callback to perform this custom logic prior to the sending or receipt of each frame.
For example:
// Require that all NACKs include a header specifying an optional requeue policy
session.on_before_send;
session.on_before_receive;
Cargo.toml
[]
= "stomp_test"
= "0.0.1"
= ["your_name_here"]
[[]]
= "stomp_test"
[]
= "*"
keywords: Stomp, Rust, rust-lang, rustlang, cargo, ActiveMQ, RabbitMQ, HornetQ, OpenMQ, Message Queue, MQ