Struct eapol::EapolFields
source · #[repr(C, packed)]pub struct EapolFields {
pub version: ProtocolVersion,
pub packet_type: PacketType,
pub packet_body_len: BigEndianU16,
}
Fields§
§version: ProtocolVersion
§packet_type: PacketType
§packet_body_len: BigEndianU16
Trait Implementations§
source§impl AsBytes for EapolFieldswhere
ProtocolVersion: AsBytes,
PacketType: AsBytes,
BigEndianU16: AsBytes,
impl AsBytes for EapolFieldswhere ProtocolVersion: AsBytes, PacketType: AsBytes, BigEndianU16: AsBytes,
§fn as_bytes_mut(&mut self) -> &mut [u8] ⓘwhere
Self: FromBytes,
fn as_bytes_mut(&mut self) -> &mut [u8] ⓘwhere Self: FromBytes,
Gets the bytes of this value mutably. Read more
§fn write_to_prefix<B>(&self, bytes: B) -> Option<()>where
B: ByteSliceMut,
fn write_to_prefix<B>(&self, bytes: B) -> Option<()>where B: ByteSliceMut,
§fn write_to_suffix<B>(&self, bytes: B) -> Option<()>where
B: ByteSliceMut,
fn write_to_suffix<B>(&self, bytes: B) -> Option<()>where B: ByteSliceMut,
source§impl Clone for EapolFields
impl Clone for EapolFields
source§fn clone(&self) -> EapolFields
fn clone(&self) -> EapolFields
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for EapolFields
impl Debug for EapolFields
source§impl FromBytes for EapolFieldswhere
ProtocolVersion: FromBytes,
PacketType: FromBytes,
BigEndianU16: FromBytes,
impl FromBytes for EapolFieldswhere ProtocolVersion: FromBytes, PacketType: FromBytes, BigEndianU16: FromBytes,
§fn read_from_prefix<B>(bytes: B) -> Option<Self>where
B: ByteSlice,
Self: Sized,
fn read_from_prefix<B>(bytes: B) -> Option<Self>where B: ByteSlice, Self: Sized,
§fn read_from_suffix<B>(bytes: B) -> Option<Self>where
B: ByteSlice,
Self: Sized,
fn read_from_suffix<B>(bytes: B) -> Option<Self>where B: ByteSlice, Self: Sized,
§fn new_zeroed() -> Selfwhere
Self: Sized,
fn new_zeroed() -> Selfwhere Self: Sized,
Creates an instance of
Self
from zeroed bytes.