aboutsummaryrefslogtreecommitdiff
path: root/src/error.rs
diff options
context:
space:
mode:
authortrinity-1686a <trinity@deuxfleurs.fr>2022-06-20 23:40:31 +0200
committertrinity-1686a <trinity@deuxfleurs.fr>2022-06-20 23:40:31 +0200
commitd3d18b8e8bde5fee81022fd050d5f4c114262fcf (patch)
tree1ac73cb61b0e5298c36f913c303537561269498e /src/error.rs
parent0fec85b47a1bc679d2684994bfae6ef0fe7d4911 (diff)
downloadnetapp-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.rs4
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,