[−][src]Struct packet_crafter::headers::EthernetHeader
Implementations
impl EthernetHeader
[src]
pub fn get_dst_mac(&self) -> &[u8; 6]
[src]
pub fn get_src_mac(&self) -> &[u8; 6]
[src]
pub fn get_eth_type(&self) -> &u16
[src]
impl EthernetHeader
[src]
pub fn set_eth_type(&mut self, v: u16)
[src]
impl EthernetHeader
[src]
Trait Implementations
impl Header for EthernetHeader
[src]
fn make(self) -> PacketData
[src]
fn parse(raw_data: &[u8]) -> Result<Box<Self>, ParseError>
[src]
fn get_proto(&self) -> Protocol
[src]
fn get_length(&self) -> u8
[src]
fn get_min_length() -> u8
[src]
fn into_transport_header(&mut self) -> Option<&mut dyn TransportHeader>
[src]
Auto Trait Implementations
impl RefUnwindSafe for EthernetHeader
impl Send for EthernetHeader
impl Sync for EthernetHeader
impl Unpin for EthernetHeader
impl UnwindSafe for EthernetHeader
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,