1 2 3 4 5 6 7 8 9 10 11
#[derive(Debug)] pub enum Error { NotFoundError, MySQLError(mysql_async::Error), } impl From<mysql_async::Error> for Error { fn from(err: mysql_async::Error) -> Error { Error::MySQLError(err) } }