Add scan endpoints

This commit is contained in:
Dominik Werder
2021-05-31 14:31:29 +02:00
parent d3fa58563b
commit f165530263
4 changed files with 89 additions and 26 deletions

View File

@@ -10,6 +10,7 @@ use std::net::AddrParseError;
use std::num::{ParseFloatError, ParseIntError};
use std::string::FromUtf8Error;
use tokio::task::JoinError;
use std::sync::PoisonError;
/**
The common error type for this application.
@@ -237,6 +238,12 @@ impl From<regex::Error> for Error {
}
}
impl<T> From<PoisonError<T>> for Error {
fn from(_: PoisonError<T>) -> Self {
Self::with_msg("PoisonError")
}
}
pub fn todo() {
todo!("TODO");
}