pub struct RadiusPacket<'a> { /* private fields */ }Implementations§
Source§impl<'a> RadiusPacket<'a>
impl<'a> RadiusPacket<'a>
pub fn new(buf: &'a [u8]) -> Option<Self>
pub fn code(&self) -> RadiusCode
pub fn identifier(&self) -> u8
pub fn length(&self) -> u16
Sourcepub fn authenticator(&self) -> &[u8; 16]
pub fn authenticator(&self) -> &[u8; 16]
16-byte authenticator at offset 4. new() guarantees buf.len() >= 20.
pub fn attributes(&self) -> RadiusAttributeIter<'a> ⓘ
Trait Implementations§
Source§impl<'a> Clone for RadiusPacket<'a>
impl<'a> Clone for RadiusPacket<'a>
Source§fn clone(&self) -> RadiusPacket<'a>
fn clone(&self) -> RadiusPacket<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for RadiusPacket<'a>
impl<'a> Debug for RadiusPacket<'a>
Source§impl<'a> From<RadiusPacket<'a>> for AppPacket<'a>
impl<'a> From<RadiusPacket<'a>> for AppPacket<'a>
Source§fn from(p: RadiusPacket<'a>) -> Self
fn from(p: RadiusPacket<'a>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> Freeze for RadiusPacket<'a>
impl<'a> RefUnwindSafe for RadiusPacket<'a>
impl<'a> Send for RadiusPacket<'a>
impl<'a> Sync for RadiusPacket<'a>
impl<'a> Unpin for RadiusPacket<'a>
impl<'a> UnsafeUnpin for RadiusPacket<'a>
impl<'a> UnwindSafe for RadiusPacket<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more