diameter_interface/modeling/message/
command_flags.rs

1#[derive(Debug)]
2pub enum CommandFlag {
3    Request,
4    Proxyable,
5    Error,
6    Retransmit,
7}
8
9impl CommandFlag {
10    pub fn value(&self) -> u8 {
11        match self {
12            CommandFlag::Request => 0x80,
13            CommandFlag::Proxyable => 0x40,
14            CommandFlag::Error => 0x20,
15            CommandFlag::Retransmit => 0x10,
16        }
17    }
18}