Open data via index file

This commit is contained in:
Dominik Werder
2021-04-28 11:35:06 +02:00
parent 09ea4175dc
commit 0204c37017
23 changed files with 966 additions and 709 deletions

View File

@@ -90,6 +90,8 @@ impl std::fmt::Display for Error {
}
}
impl std::error::Error for Error {}
impl From<String> for Error {
fn from(k: String) -> Self {
Self::with_msg(k)
@@ -102,8 +104,6 @@ impl From<&str> for Error {
}
}
impl std::error::Error for Error {}
impl From<std::io::Error> for Error {
fn from(k: std::io::Error) -> Self {
Self::with_msg(k.to_string())
@@ -192,6 +192,12 @@ impl From<tokio_postgres::Error> for Error {
}
}
impl<T> From<async_channel::SendError<T>> for Error {
fn from(k: async_channel::SendError<T>) -> Self {
Self::with_msg(k.to_string())
}
}
pub fn todoval<T>() -> T {
todo!("TODO todoval")
}