Fixed handshake
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user