debug.rs 248 B

123456789101112
  1. use thingbuf::mpsc;
  2. #[test]
  3. fn mpsc_debug() {
  4. let (tx, rx) = mpsc::channel(4);
  5. println!("tx={:#?}", tx);
  6. println!("rx={:#?}", rx);
  7. let _ = tx.try_send(1);
  8. println!("rx={:#?}", rx);
  9. drop(tx);
  10. println!("rx={:#?}", rx);
  11. }