feat: add custom error types, remove anyhow

This commit is contained in:
ThetaDev 2022-10-08 14:30:09 +02:00
parent 1297bcb641
commit a3e3269fb3
16 changed files with 385 additions and 184 deletions

View file

@ -7,7 +7,7 @@ use std::{
use log::error;
pub trait CacheStorage {
pub trait CacheStorage: Sync + Send {
fn write(&self, data: &str);
fn read(&self) -> Option<String>;
}