1 2 3 4 5 6 7 8
use lazy_static::lazy_static; use std::sync::Mutex; lazy_static! { pub static ref COUNT_READ: Mutex<u32> = Mutex::new(0); pub static ref COUNT_WRITE: Mutex<u32> = Mutex::new(0); pub static ref LAST_ERROR: Mutex<u32> = Mutex::new(0); }