]> git.nihav.org Git - nihav.git/commitdiff
core/codecs: introduce a special error for failed checksum
authorKostya Shishkov <kostya.shishkov@gmail.com>
Tue, 1 Sep 2020 08:45:03 +0000 (10:45 +0200)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Sat, 5 Sep 2020 12:09:56 +0000 (14:09 +0200)
nihav-core/src/codecs/mod.rs

index 8594b40905e0cd90189ffeba8574ccb97cf98009..2ae0c334766a0806bf281eb607fe50560b63d1cd 100644 (file)
@@ -18,6 +18,8 @@ pub enum DecoderError {
     TryAgain,
     /// Invalid input data was provided.
     InvalidData,
+    /// Checksum verification failed.
+    ChecksumError,
     /// Provided input turned out to be incomplete.
     ShortData,
     /// Decoder could not decode provided frame because it references some missing previous frame.