Crates.io | ruststalk |
lib.rs | ruststalk |
version | 0.0.1 |
source | src |
created_at | 2015-01-05 03:14:57.863214 |
updated_at | 2015-12-11 23:56:40.231265 |
description | A beanstalkd client for rust. |
homepage | https://github.com/Seich/ruststalk |
repository | https://github.com/Seich/ruststalk.git |
max_upload_size | |
id | 712 |
size | 7,008 |
A Rust Beanstalkd client.
Ruststalk aims to provide a protocol abiding implementation of a beanstalkd client.
let stream = TcpStream::connect("127.0.0.1", 11300).unwrap();
let mut c = Client::new(stream);
let _ = c.use_tube("ruststalk");
let _ = c.put(1i, 0i, 0i, "Hello World");
let result = c.reserve();
if result.is_ok() {
println!("{}", result.unwrap());
}
Licensed under the MIT License.