代码拉取完成,页面将自动刷新
Here you can find the Rust code examples for RabbitMQ tutorials.
The examples use lapin client library.
You should have a RabbitMQ server running on default port.
Each tutorial is a separate crate where each source file corresponds to a binary executable. Each cargo command should be launched in a separate shell.
cd 01-hello-world
cargo run --bin receive
cargo run --bin send
cd 02-work-queues
cargo run --bin worker
cargo run --bin new-task "hi" # specify a custom message
cd 03-publish-subscribe
cargo run --bin subscribe
cargo run --bin publish "hi" # specify a custom message
cd 04-routing
cargo run --bin receive-direct info error # specify log levels
cargo run --bin emit-direct error "help!" # specify severity and custom message
cd 05-topics
cargo run --bin receive-topic kern.* # specify topic filter
cargo run --bin emit-topic kern.mem "No memory left!" # specify topic and message
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。