Struct sawp_diameter::Header [−][src]
Implementations
impl Header
[src]
pub const REQUEST_FLAG: u8
[src]
pub const PROXIABLE_FLAG: u8
[src]
pub const ERROR_FLAG: u8
[src]
pub const POTENTIALLY_RETRANSMITTED_FLAG: u8
[src]
pub const RESERVED_MASK: u8
[src]
pub fn is_request(&self) -> bool
[src]
If set, the message is a request. If cleared, the message is an answer.
pub fn is_proxiable(&self) -> bool
[src]
If set, the message MAY be proxied, relayed, or redirected. If cleared, the message MUST be locally processed.
pub fn is_error(&self) -> bool
[src]
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
pub fn is_potentially_retransmitted(&self) -> bool
[src]
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.
pub fn get_reserved(&self) -> u8
[src]
These flag bits are reserved for future use; they MUST be set to zero and ignored by the receiver.
pub fn length(&self) -> usize
[src]
Length of AVPs
pub fn parse(input: &[u8]) -> IResult<&[u8], (Self, ErrorFlags)>
[src]
Trait Implementations
impl Debug for Header
[src]
impl PartialEq<Header> for Header
[src]
impl StructuralPartialEq for Header
[src]
Auto Trait Implementations
impl RefUnwindSafe for Header
impl Send for Header
impl Sync for Header
impl Unpin for Header
impl UnwindSafe for Header
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>,