rust_integration_services/utils/
error.rs

1pub struct Error;
2
3impl Error {
4    pub fn tokio_io<T: AsRef<str>>(message: T) -> tokio::io::Error {
5        tokio::io::Error::new(tokio::io::ErrorKind::Other, message.as_ref())
6    }
7
8    pub fn std_io<T: AsRef<str>>(message: T) -> std::io::Error {
9        std::io::Error::new(std::io::ErrorKind::Other, message.as_ref())
10    }
11}