Enum SupportedAttributeTypes

Source
pub enum SupportedAttributeTypes {
Show 17 variants AsciiString, ByteString, Integer, Integer64, Date, IPv4Addr, IPv4Prefix, IPv6Addr, IPv6Prefix, InterfaceId, Enum, Tlv, Vsa, Evs, Concat, Extended, LongExtended,
}
Expand description

Represents a list of supported data types as defined in RFC 2865 & RFC 8044

Variants§

§

AsciiString

Rust’s String; RFC 8044 calls this “text” - UTF-8 text

§

ByteString

Rusts’s u8; RFC 8044 calls this “string” (FreeRADIUS calls this “octets”) - binary data as a sequence of undistinguished octets

§

Integer

Rust’s u32

§

Integer64

Rust’s u64

§

Date

Rust’s u32; RFC 8044 calls this “time”

§

IPv4Addr

Rust’s [u8;4]

§

IPv4Prefix

Rust’s [u8;5]

§

IPv6Addr

Rust’s [u8;16]

§

IPv6Prefix

Rust’s [u8;18]

§

InterfaceId

Rust’s [u8;8]; RFC 8044 calls this “ifid”

§

Enum

Rust’s u32

§

Tlv

Rust’s u8

§

Vsa

Rust’s u8; RFC 8044 defines this as vendor-specific data

§

Evs

Rust’s u8; RFC 8044 defines this as Extended-Vendor-Specific Attribute (FreeRADIUS accepts VSA instead of EVS data type)

§

Concat

Rust’s u8; Doesn’t look like a type on its own, but rather an extension to some data types (in FreeRADIUS this is a flag) usually string/octets

§

Extended

Rust’s u8; Doesn’t look like a type on its own, but rather an extension to some data types (in FreeRADIUS this is a flag)

§

LongExtended

Rust’s u8; Doesn’t look like a type on its own, but rather an extension to some data types (in FreeRADIUS this is a flag)

Trait Implementations§

Source§

impl Debug for SupportedAttributeTypes

Source§

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

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

impl PartialEq for SupportedAttributeTypes

Source§

fn eq(&self, other: &SupportedAttributeTypes) -> 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 StructuralPartialEq for SupportedAttributeTypes

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> Same for T

Source§

type Output = T

Should always be Self
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.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V