fix punishment

This commit is contained in:
John Smith
2023-07-17 17:51:05 -04:00
parent 6ee389eb34
commit 7658e2cb42
3 changed files with 12 additions and 0 deletions

View File

@@ -202,6 +202,9 @@ impl<T> NetworkResult<T> {
pub fn is_already_exists(&self) -> bool {
matches!(self, Self::AlreadyExists(_))
}
pub fn is_invalid_message(&self) -> bool {
matches!(self, Self::InvalidMessage(_))
}
pub fn is_value(&self) -> bool {
matches!(self, Self::Value(_))
}