Struct sawp_diameter::AVP[][src]

pub struct AVP { /* fields omitted */ }

Implementations

impl AVP[src]

pub const VENDOR_SPECIFIC_FLAG: u8[src]

pub const MANDATORY_FLAG: u8[src]

pub const PROTECTED_FLAG: u8[src]

pub const RESERVED_MASK: u8[src]

pub fn is_vendor_specific(&self) -> bool[src]

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.

pub fn is_mandatory(&self) -> bool[src]

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.

pub fn is_protected(&self) -> bool[src]

The 'P' bit, known as the Protected bit, has been reserved for future usage of end-to-end security

pub fn reserved_set(&self) -> bool[src]

The sender of the AVP MUST set 'R' (reserved) bits to 0 and the receiver SHOULD ignore all 'R' (reserved) bits.

pub fn get_reserved(&self) -> u8[src]

pub fn parse(input: &[u8]) -> IResult<&[u8], Self>[src]

Trait Implementations

impl Debug for AVP[src]

impl PartialEq<AVP> for AVP[src]

impl StructuralPartialEq for AVP[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.