Struct libarp::arp::ArpMessage[][src]

pub struct ArpMessage {
    pub source_hardware_address: MacAddr,
    pub source_protocol_address: Ipv4Addr,
    pub target_hardware_address: MacAddr,
    pub target_protocol_address: Ipv4Addr,
    pub ethertype: EtherType,
    pub operation: Operation,
}

Fields

source_hardware_address: MacAddrsource_protocol_address: Ipv4Addrtarget_hardware_address: MacAddrtarget_protocol_address: Ipv4Addrethertype: EtherTypeoperation: Operation

Implementations

Constructs a new ARP message with arbitrary field contents.

Constructs a new ARP request message.

Constructs a new ARP response message.

Constructs a new RARP request message.

Constructs a new RARP response message.

Sends the message on the given interface.

Errors

Returns an error when sending fails.

Trait Implementations

The type returned in the event of a conversion error.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.