online system

This commit is contained in:
2025-04-02 20:08:14 +02:00
parent 6b01a37ec6
commit 5731e193c8
5 changed files with 107 additions and 72 deletions
+2
View File
@@ -70,6 +70,7 @@ pub enum Error {
InvalidHandshake,
DatabaseError,
SomethingWentWrong,
Timeout,
}
impl std::fmt::Display for Error {
@@ -83,6 +84,7 @@ impl std::fmt::Display for Error {
Error::InvalidHandshake => write!(f, "Invalid handshake"),
Error::DatabaseError => write!(f, "Database error"),
Error::SomethingWentWrong => write!(f, "Something went wrong"),
Error::Timeout => write!(f, "Timeout"),
}
}
}