summaryrefslogblamecommitdiff
path: root/src/error.rs
blob: 06d7d1ea13d7efe6a2007e78fc7d10ed7ed119d7 (plain) (tree)
























                                                                                                
use bincode::Error as bincode_e;
use sled::Error as sled_e;

#[derive(Debug)]
pub struct TwinHError;

impl std::error::Error for TwinHError {}

impl std::fmt::Display for TwinHError {
    fn fmt(&self, _: &mut std::fmt::Formatter<'_>) -> std::result::Result<(), std::fmt::Error> {
        todo!()
    }
}

impl From<sled_e> for TwinHError {
    fn from(_: sled_e) -> Self {
        todo!()
    }
}

impl From<bincode_e> for TwinHError {
    fn from(_: bincode_e) -> Self {
        todo!()
    }
}