[][src]Struct packet_crafter::headers::ArpHeader

pub struct ArpHeader { /* fields omitted */ }

Implementations

impl ArpHeader[src]

pub fn get_hardware_type(&self) -> &u16[src]

pub fn get_protocol_type(&self) -> &u16[src]

pub fn get_hardware_size(&self) -> &u8[src]

pub fn get_protocol_size(&self) -> &u8[src]

pub fn get_opcode(&self) -> &u16[src]

pub fn get_sender_mac(&self) -> &[u8; 6][src]

pub fn get_sender_ip(&self) -> &[u8; 4][src]

pub fn get_destination_mac(&self) -> &[u8; 6][src]

pub fn get_destination_ip(&self) -> &[u8; 4][src]

impl ArpHeader[src]

pub fn set_opcode(&mut self, v: u16)[src]

pub fn set_sender_mac(&mut self, v: [u8; 6])[src]

pub fn set_sender_ip(&mut self, v: [u8; 4])[src]

pub fn set_destination_mac(&mut self, v: [u8; 6])[src]

pub fn set_destination_ip(&mut self, v: [u8; 4])[src]

impl ArpHeader[src]

pub fn new<T: Into<[u8; 4]>>(
    sender_mac: [u8; 6],
    sender_ip: T,
    destination_mac: [u8; 6],
    destination_ip: T
) -> Self
[src]

Trait Implementations

impl Header for ArpHeader[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.