beanstalkd 0.0.1

Easy-to-use beanstalkd client for Rust (IronMQ compatible)
docs.rs failed to build beanstalkd-0.0.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.
Visit the last successful build: beanstalkd-0.4.1

rust-beanstalkd Build Status

Easy-to-use beanstalkd client for Rust (IronMQ compatible)

Install

Add this dependency to your Cargo.toml

beanstalkd = "~0.0.0"

Usage

Producer

extern crate beanstalkd;

use beanstalkd::{Connection, Tube};

let connection = Connection::new("localhost", 11300).unwrap();
let mut tube = Tube::new(connection, "default");
tube.put(b"Hello World \n This is a new line!", 0, 0, 10000);

Consumer

extern crate beanstalkd;

use beanstalkd::{Connection, Tube};

let connection = Connection::new("localhost", 11300).unwrap();
let mut tube = Tube::new(connection, "default");
match tube.reserve().unwrap() {
    Some((id, body)) => tube.delete(id),
    None => {},
};

IronMQ example

// TODO

License

MIT License