Add –cfg debug to rustc export RUST_LOG=::help to show list of crates export RUST_LOG=crate_name,crate_name2,crate_name3 export RUST_LOG=rustymem export RUST_LOG=rustymemcache export RUST_LOG=client_test,rustymem
- create a new ~[u8] and give it a mutable binding
- pass it to read
- freeze it by rebinding it immutably
- give it to the ARC
Use extra:serialize module. extra:serialize is just the interface. Use the two implementations in extra::ebml or json.
In general, have the task create a timer and then select on the timer and whatever you want to have a timeout. If the timer finishes first, then you’ll unblock (and see it was the timer that finished => ergo timeout).