Fixed handshake

This commit is contained in:
2026-03-30 13:27:44 +02:00
parent a785141305
commit 1537b61709
2 changed files with 88 additions and 28 deletions
+7
View File
@@ -9,6 +9,7 @@ pub enum Error {
HandshakeFailed(String),
Utf8(FromUtf8Error),
ConnectionClosed,
Elapsed,
}
impl From<std::io::Error> for Error {
@@ -22,3 +23,9 @@ impl From<FromUtf8Error> for Error {
Self::Utf8(value)
}
}
impl From<tokio::time::error::Elapsed> for Error {
fn from(_: tokio::time::error::Elapsed) -> Self {
Self::Elapsed
}
}