Struct rawsocket_helper::out_going::OutGoing[][src]

pub struct OutGoing {
    pub iface: NetworkInterface,
    pub if_name: String,
    pub src_mac: MacAddr,
    pub dst_mac: MacAddr,
    pub src_ip: Ipv4Addr,
    pub dst_gw: Ipv4Addr,
}
Expand description

访问外网使用的信息

Fields

iface: NetworkInterface

访问外网使用的接口

if_name: String

访问外网使用的接口, 名称

src_mac: MacAddr

访问外网使用的源 MAC, if_index/src_ip 对应的 MAC

dst_mac: MacAddr

访问外网使用的目的 MAC, dst_gw 对应的 MAC

src_ip: Ipv4Addr

访问外网使用的源 IP, if_index 对应的 IP

dst_gw: Ipv4Addr

访问外网使用的网关 IP

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.

Should always be Self

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.