feat: add Status::num() for handy conversion enum->u8
This commit is contained in:
parent
6bd101504d
commit
dbbcf322c3
1 changed files with 4 additions and 0 deletions
|
@ -81,6 +81,10 @@ impl Status {
|
|||
self.status_code
|
||||
}
|
||||
|
||||
pub fn num(self: &Self) -> u8 {
|
||||
self.status_code.into()
|
||||
}
|
||||
|
||||
pub fn reply_type(self: &Self) -> ReplyType {
|
||||
self.reply_type
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue