Struct sawp_diameter::Header
source · pub struct Header { /* private fields */ }
Implementations§
source§impl Header
impl Header
pub const REQUEST_FLAG: u8 = 128u8
pub const PROXIABLE_FLAG: u8 = 64u8
pub const ERROR_FLAG: u8 = 32u8
pub const POTENTIALLY_RETRANSMITTED_FLAG: u8 = 16u8
pub const RESERVED_MASK: u8 = 15u8
sourcepub fn is_request(&self) -> bool
pub fn is_request(&self) -> bool
If set, the message is a request. If cleared, the message is an answer.
sourcepub fn is_proxiable(&self) -> bool
pub fn is_proxiable(&self) -> bool
If set, the message MAY be proxied, relayed, or redirected. If cleared, the message MUST be locally processed.
sourcepub fn is_error(&self) -> bool
pub fn is_error(&self) -> bool
If set, the message contains a protocol error, and the message will not conform to the CCF described for this command. Messages with the ‘E’ bit set are commonly referred to as error messages. This bit MUST NOT be set in request messages
sourcepub fn is_potentially_retransmitted(&self) -> bool
pub fn is_potentially_retransmitted(&self) -> bool
This flag is set after a link failover procedure, to aid the removal of duplicate requests. It is set when resending requests not yet acknowledged, as an indication of a possible duplicate due to a link failure.
sourcepub fn get_reserved(&self) -> u8
pub fn get_reserved(&self) -> u8
These flag bits are reserved for future use; they MUST be set to zero and ignored by the receiver.