AttributeCode

Enum AttributeCode 

Source
#[repr(u32)]
pub enum AttributeCode {
Show 50 variants Unknown = 0, AcctInterimInterval = 85, AccountingRealtimeRequired = 483, AcctMultiSessionId = 50, AccountingRecordNumber = 485, AccountingRecordType = 480, AcctSessionId = 44, AccountingSubSessionId = 287, AcctApplicationId = 259, AuthApplicationId = 258, AuthRequestType = 274, AuthorizationLifetime = 291, AuthGracePeriod = 276, AuthSessionState = 277, ReAuthRequestType = 285, Class = 25, DestinationHost = 293, DestinationRealm = 235, DisconnectCause = 273, ErrorMessage = 281, ErrorReportingHost = 294, EventTimestamp = 55, ExperimentalResult = 297, ExperimentalResultCode = 298, FailedAVP = 279, FirmwareRevision = 267, HostIPAddress = 257, InbandSecurityId = 299, MultiRoundTimeOut = 272, OriginHost = 264, OriginRealm = 296, OriginStateId = 278, ProductName = 269, ProxyHost = 280, ProxyInfo = 284, ProxyState = 33, RedirectHost = 292, RedirectHostUsage = 261, RedirectMaxCacheTime = 262, ResultCode = 268, RouteRecord = 282, SessionId = 263, SessionTimeout = 27, SessionBinding = 270, SessionServerFailover = 271, SupportedVendorId = 265, TerminationCause = 295, UserName = 1, VendorId = 266, VendorSpecificApplicationId = 260,
}
Expand description

AVP Attribute Names as stated in the protocol reference

Variants§

§

Unknown = 0

§

AcctInterimInterval = 85

§

AccountingRealtimeRequired = 483

§

AcctMultiSessionId = 50

§

AccountingRecordNumber = 485

§

AccountingRecordType = 480

§

AcctSessionId = 44

§

AccountingSubSessionId = 287

§

AcctApplicationId = 259

§

AuthApplicationId = 258

§

AuthRequestType = 274

§

AuthorizationLifetime = 291

§

AuthGracePeriod = 276

§

AuthSessionState = 277

§

ReAuthRequestType = 285

§

Class = 25

§

DestinationHost = 293

§

DestinationRealm = 235

§

DisconnectCause = 273

§

ErrorMessage = 281

§

ErrorReportingHost = 294

§

EventTimestamp = 55

§

ExperimentalResult = 297

§

ExperimentalResultCode = 298

§

FailedAVP = 279

§

FirmwareRevision = 267

§

HostIPAddress = 257

§

InbandSecurityId = 299

§

MultiRoundTimeOut = 272

§

OriginHost = 264

§

OriginRealm = 296

§

OriginStateId = 278

§

ProductName = 269

§

ProxyHost = 280

§

ProxyInfo = 284

§

ProxyState = 33

§

RedirectHost = 292

§

RedirectHostUsage = 261

§

RedirectMaxCacheTime = 262

§

ResultCode = 268

§

RouteRecord = 282

§

SessionId = 263

§

SessionTimeout = 27

§

SessionBinding = 270

§

SessionServerFailover = 271

§

SupportedVendorId = 265

§

TerminationCause = 295

§

UserName = 1

§

VendorId = 266

§

VendorSpecificApplicationId = 260

Trait Implementations§

Source§

impl Debug for AttributeCode

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for AttributeCode

Source§

fn eq(&self, other: &AttributeCode) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl TryFrom<u32> for AttributeCode

Source§

type Error = TryFromPrimitiveError<AttributeCode>

The type returned in the event of a conversion error.
Source§

fn try_from(number: u32) -> Result<Self, TryFromPrimitiveError<Self>>

Performs the conversion.
Source§

impl TryFromPrimitive for AttributeCode

Source§

const NAME: &'static str = "AttributeCode"

Source§

type Primitive = u32

Source§

fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>

Source§

impl Eq for AttributeCode

Source§

impl StructuralPartialEq for AttributeCode

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.