Struct sawp_diameter::AVP
source · pub struct AVP { /* private fields */ }
Implementations§
source§impl AVP
impl AVP
pub const VENDOR_SPECIFIC_FLAG: u8 = 128u8
pub const MANDATORY_FLAG: u8 = 64u8
pub const PROTECTED_FLAG: u8 = 32u8
pub const RESERVED_MASK: u8 = 31u8
sourcepub fn is_vendor_specific(&self) -> bool
pub fn is_vendor_specific(&self) -> bool
The ‘V’ bit, known as the Vendor-Specific bit, indicates whether the optional Vendor-ID field is present in the AVP header. When set, the AVP Code belongs to the specific vendor code address space.
sourcepub fn is_mandatory(&self) -> bool
pub fn is_mandatory(&self) -> bool
The ‘M’ bit, known as the Mandatory bit, indicates whether the receiver of the AVP MUST parse and understand the semantics of the AVP including its content.
sourcepub fn is_protected(&self) -> bool
pub fn is_protected(&self) -> bool
The ‘P’ bit, known as the Protected bit, has been reserved for future usage of end-to-end security
sourcepub fn get_reserved(&self) -> u8
pub fn get_reserved(&self) -> u8
The sender of the AVP MUST set ‘R’ (reserved) bits to 0 and the receiver SHOULD ignore all ‘R’ (reserved) bits.