extern crate beanstalkd; use beanstalkd::Beanstalkd; fn main() { let mut beanstalkd = Beanstalkd::localhost().unwrap(); let (id, body) = beanstalkd.reserve().unwrap(); println!("{}", body); let _ = beanstalkd.delete(id); }