diameter-interface 0.1.3

Rust Implementation of the Diameter Protocol.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#[derive(Debug)]
pub enum CommandFlag {
    Request,
    Proxyable,
    Error,
    Retransmit,
}

impl CommandFlag {
    pub fn value(&self) -> u8 {
        match self {
            CommandFlag::Request => 0x80,
            CommandFlag::Proxyable => 0x40,
            CommandFlag::Error => 0x20,
            CommandFlag::Retransmit => 0x10,
        }
    }
}