diff --git a/rust/src/applayer.rs b/rust/src/applayer.rs index d09619e2cb..e533638ee8 100644 --- a/rust/src/applayer.rs +++ b/rust/src/applayer.rs @@ -347,6 +347,14 @@ impl AppLayerResult { }; } + pub fn is_ok(self) -> bool { + self.status == 0 + } + + pub fn is_err(self) -> bool { + self.status == -1 + } + pub fn is_incomplete(self) -> bool { self.status == 1 }