#![allow(warnings)] use anyhow::Error; use std::fmt::Debug; use std::sync::{Mutex, MutexGuard}; mod Prd_list; pub mod api; mod crypto; mod images; mod network; mod peers; mod process; mod silentpayments; mod user; pub(crate) trait MutexExt { fn lock_anyhow(&self) -> Result, Error>; } impl MutexExt for Mutex { fn lock_anyhow(&self) -> Result, Error> { self.lock() .map_err(|e| Error::msg(format!("Failed to lock: {}", e))) } }