about to try channels
This commit is contained in:
@@ -3,6 +3,7 @@ use super::event::Event;
|
||||
|
||||
use rand::{self, Rng};
|
||||
use rand::distributions::Alphanumeric;
|
||||
use crossbeam_channel::{unbounded, Receiver, Sender};
|
||||
|
||||
#[derive(Clone, Debug)]
|
||||
pub struct MockRoom {
|
||||
@@ -60,6 +61,12 @@ impl Room for MockRoom {
|
||||
}
|
||||
}
|
||||
|
||||
impl Drop for MockRoom {
|
||||
fn drop(&mut self) {
|
||||
println!("not impl");
|
||||
}
|
||||
}
|
||||
|
||||
pub fn rands() -> String {
|
||||
rand::thread_rng()
|
||||
.sample_iter(&Alphanumeric)
|
||||
|
||||
Reference in New Issue
Block a user