diff options
author | trinity-1686a <trinity@deuxfleurs.fr> | 2022-06-20 23:40:31 +0200 |
---|---|---|
committer | trinity-1686a <trinity@deuxfleurs.fr> | 2022-06-20 23:40:31 +0200 |
commit | d3d18b8e8bde5fee81022fd050d5f4c114262fcf (patch) | |
tree | 1ac73cb61b0e5298c36f913c303537561269498e /src/error.rs | |
parent | 0fec85b47a1bc679d2684994bfae6ef0fe7d4911 (diff) | |
download | netapp-d3d18b8e8bde5fee81022fd050d5f4c114262fcf.tar.gz netapp-d3d18b8e8bde5fee81022fd050d5f4c114262fcf.zip |
use a framing protocol instead of even/odd channel
Diffstat (limited to 'src/error.rs')
-rw-r--r-- | src/error.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/error.rs b/src/error.rs index 99acdd1..7911c29 100644 --- a/src/error.rs +++ b/src/error.rs @@ -25,6 +25,9 @@ pub enum Error { #[error(display = "UTF8 error: {}", _0)] UTF8(#[error(source)] std::string::FromUtf8Error), + #[error(display = "Framing protocol error")] + Framing, + #[error(display = "{}", _0)] Message(String), @@ -50,6 +53,7 @@ impl Error { Self::RMPEncode(_) => 10, Self::RMPDecode(_) => 11, Self::UTF8(_) => 12, + Self::Framing => 13, Self::NoHandler => 20, Self::ConnectionClosed => 21, Self::Handshake(_) => 30, |