applayer: add bool status check fns

pull/13292/head
Shivani Bhardwaj 1 year ago committed by Victor Julien
parent a5583075f5
commit 2da5bc8039

@ -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
}

Loading…
Cancel
Save