Struct sawp_diameter::AVP [−][src]
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
Auto Trait Implementations
impl RefUnwindSafe for AVP
[src]
impl Send for AVP
[src]
impl Sync for AVP
[src]
impl Unpin for AVP
[src]
impl UnwindSafe for AVP
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,