pub trait Locking { type Error; // Required methods fn is_locked(&self) -> bool; fn lock(&mut self); fn unlock(&mut self); }