pub trait MutexExtensions<T> {
    // Required method
    fn lock_with_metric(&self, metric: &Lock) -> LockGuard<MutexGuard<'_, T>>;
}pub trait MutexExtensions<T> {
    // Required method
    fn lock_with_metric(&self, metric: &Lock) -> LockGuard<MutexGuard<'_, T>>;
}