Enum sawp_diameter::Value[][src]

pub enum Value {
    Unhandled(Vec<u8>),
    OctetString(Vec<u8>),
    Integer32(i32),
    Integer64(i64),
    Unsigned32(u32),
    Unsigned64(u64),
    Float32(f32),
    Float64(f64),
    Grouped(Vec<AVP>),
    Enumerated(u32),
    UTF8String(String),
    DiameterIdentity(String),
    DiameterURI(String),
    Address(IpAddr),
    Time(u32),
}

AVP Data Format as specified in the protocol reference

Variants

Unhandled(Vec<u8>)
OctetString(Vec<u8>)
Integer32(i32)
Integer64(i64)
Unsigned32(u32)
Unsigned64(u64)
Float32(f32)
Float64(f64)
Grouped(Vec<AVP>)
Enumerated(u32)
UTF8String(String)
DiameterIdentity(String)
DiameterURI(String)
Address(IpAddr)
Time(u32)

Implementations

impl Value[src]

pub fn new<'a>(
    code: &AttributeCode,
    data: &'a [u8]
) -> IResult<&'a [u8], (Self, ErrorFlags)>
[src]

Trait Implementations

impl Debug for Value[src]

impl PartialEq<Value> for Value[src]

impl StructuralPartialEq for Value[src]

Auto Trait Implementations

impl RefUnwindSafe for Value

impl Send for Value

impl Sync for Value

impl Unpin for Value

impl UnwindSafe for Value

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.