pub struct EapolFrame {
pub protocol_version: u8,
pub packet_type: u8,
pub packet_body_length: u16,
pub body: Vec<u8>,
}Expand description
EAPOL (IEEE 802.1X) frame header
Fields§
§protocol_version: u8Protocol version (1 for 802.1X-2001, 2 for 802.1X-2004)
packet_type: u8Packet type (0=EAP, 1=Start, 2=Logoff, 3=Key)
packet_body_length: u16Length of packet body
body: Vec<u8>Packet body
Implementations§
Source§impl EapolFrame
impl EapolFrame
Sourcepub fn from_bytes(data: &[u8]) -> Option<Self>
pub fn from_bytes(data: &[u8]) -> Option<Self>
Parse EAPOL frame from bytes
Trait Implementations§
Source§impl Clone for EapolFrame
impl Clone for EapolFrame
Source§fn clone(&self) -> EapolFrame
fn clone(&self) -> EapolFrame
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for EapolFrame
impl RefUnwindSafe for EapolFrame
impl Send for EapolFrame
impl Sync for EapolFrame
impl Unpin for EapolFrame
impl UnwindSafe for EapolFrame
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)