Code

Enum Code 

Source
pub enum Code {
Show 15 variants AccessRequest = 1, AccessAccept = 2, AccessReject = 3, AccountingRequest = 4, AccountingResponse = 5, AccessChallenge = 11, StatusServer = 12, StatusClient = 13, DisconnectRequest = 40, DisconnectAck = 41, DisconnectNak = 42, CoARequest = 43, CoAACK = 44, CoANAK = 45, Reserved = 255,
}
Expand description

RADIUS packet codes as defined in RFC 2865.

Each variant corresponds to the Code field in the RADIUS header, indicating the type of request or response.

Variants§

§

AccessRequest = 1

Access-Request (1): Used by a client to request authentication.

§

AccessAccept = 2

Access-Accept (2): Server response granting access.

§

AccessReject = 3

Access-Reject (3): Server response denying access.

§

AccountingRequest = 4

Accounting-Request (4): Used by a client to send accounting data.

§

AccountingResponse = 5

Accounting-Response (5): Server acknowledgment of an Accounting-Request.

§

AccessChallenge = 11

Access-Challenge (11): Server requests additional information.

§

StatusServer = 12

Status-Server (12): Experimental code for server status.

§

StatusClient = 13

Status-Client (13): Experimental code for client status.

§

DisconnectRequest = 40

Disconnect-Request (40): Used in CoA to terminate a session.

§

DisconnectAck = 41

Disconnect-ACK (41): Acknowledgment of Disconnect-Request.

§

DisconnectNak = 42

Disconnect-NAK (42): Negative acknowledgment of Disconnect-Request.

§

CoARequest = 43

CoA-Request (43): Change-of-Authorization request.

§

CoAACK = 44

CoA-ACK (44): Acknowledgment of CoA request.

§

CoANAK = 45

CoA-NAK (45): Negative acknowledgment of CoA request.

§

Reserved = 255

Reserved (255): Reserved/experimental codes not standardized.

Trait Implementations§

Source§

impl Clone for Code

Source§

fn clone(&self) -> Code

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Code

Source§

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

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

impl Display for Code

Source§

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

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

impl PartialEq for Code

Source§

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

Source§

type Error = PacketParseError

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

fn try_from(value: u8) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl Copy for Code

Source§

impl Eq for Code

Source§

impl StructuralPartialEq for Code

Auto Trait Implementations§

§

impl Freeze for Code

§

impl RefUnwindSafe for Code

§

impl Send for Code

§

impl Sync for Code

§

impl Unpin for Code

§

impl UnwindSafe for Code

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
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